1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-08 06:59:55 +00:00

replaced 'simple model: projection' with 'layered equidistant'

This commit is contained in:
Zeno Rogue 2024-07-15 13:56:08 +02:00
parent 72501c20f6
commit 497790e54b
2 changed files with 8 additions and 5 deletions

View File

@ -844,11 +844,13 @@ EX void apply_other_model(shiftpoint H_orig, hyperpoint& ret, eModel md) {
case mdHorocyclic: { case mdHorocyclic: {
if(sl2) { if(sl2) {
ret = unshift(H_orig); optimize_shift(H_orig);
ret *= .5; ret[2] = H_orig.shift;
ret[LDIM] = 1; ld d = hypot_d(2, H_orig.h);
ret = lp_apply(ret); ld z = acosh(H_orig.h[3]);
break; ret[0] = H_orig.h[0] * z / d;
ret[1] = H_orig.h[1] * z / d;
ret[3] = 1;
} }
find_zlev(H); find_zlev(H);

View File

@ -278,6 +278,7 @@ EX namespace models {
if(m == mdPerspective && gproduct) return XLAT("native perspective"); if(m == mdPerspective && gproduct) return XLAT("native perspective");
if(gproduct) return PIU(get_model_name(m)); if(gproduct) return PIU(get_model_name(m));
if(nonisotropic) { if(nonisotropic) {
if(m == mdHorocyclic && sl2) return XLAT("layered equidistant");
if(m == mdHorocyclic && !sol) return XLAT("simple model: projection"); if(m == mdHorocyclic && !sol) return XLAT("simple model: projection");
if(m == mdPerspective) return XLAT("simple model: perspective"); if(m == mdPerspective) return XLAT("simple model: perspective");
if(m == mdGeodesic) return XLAT("native perspective"); if(m == mdGeodesic) return XLAT("native perspective");