mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-30 17:27:57 +00:00
replaced 'simple model: projection' with 'layered equidistant'
This commit is contained in:
12
hypgraph.cpp
12
hypgraph.cpp
@@ -844,11 +844,13 @@ EX void apply_other_model(shiftpoint H_orig, hyperpoint& ret, eModel md) {
|
||||
case mdHorocyclic: {
|
||||
|
||||
if(sl2) {
|
||||
ret = unshift(H_orig);
|
||||
ret *= .5;
|
||||
ret[LDIM] = 1;
|
||||
ret = lp_apply(ret);
|
||||
break;
|
||||
optimize_shift(H_orig);
|
||||
ret[2] = H_orig.shift;
|
||||
ld d = hypot_d(2, H_orig.h);
|
||||
ld z = acosh(H_orig.h[3]);
|
||||
ret[0] = H_orig.h[0] * z / d;
|
||||
ret[1] = H_orig.h[1] * z / d;
|
||||
ret[3] = 1;
|
||||
}
|
||||
find_zlev(H);
|
||||
|
||||
|
Reference in New Issue
Block a user