1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 10:17:56 +00:00

Improved the UI for 'geodesic movement' setting, and also make it work correctly in SL2 and hyperbolic geometries

This commit is contained in:
Zeno Rogue
2022-12-25 12:14:36 +01:00
parent 080e853364
commit 86492d1181
10 changed files with 84 additions and 44 deletions

View File

@@ -482,9 +482,9 @@ bool behind3(shiftpoint h) {
if(pmodel == mdGeodesic)
return lp_apply(inverse_exp(h))[2] < 0;
if(pmodel == mdLiePerspective)
return lp_apply(lie_log(unshift(h)))[2] < 0;
return lp_apply(lie_log(h))[2] < 0;
if(pmodel == mdRelPerspective)
return lp_apply(rel_log(h))[2] < 0;
return lp_apply(rel_log(h, false))[2] < 0;
return h[2] < 0;
}