mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-07 21:16:48 +00:00
replaced 'simple model: projection' with 'layered equidistant'
This commit is contained in:
parent
72501c20f6
commit
497790e54b
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);
|
||||
|
||||
|
@ -278,6 +278,7 @@ EX namespace models {
|
||||
if(m == mdPerspective && gproduct) return XLAT("native perspective");
|
||||
if(gproduct) return PIU(get_model_name(m));
|
||||
if(nonisotropic) {
|
||||
if(m == mdHorocyclic && sl2) return XLAT("layered equidistant");
|
||||
if(m == mdHorocyclic && !sol) return XLAT("simple model: projection");
|
||||
if(m == mdPerspective) return XLAT("simple model: perspective");
|
||||
if(m == mdGeodesic) return XLAT("native perspective");
|
||||
|
Loading…
Reference in New Issue
Block a user