1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

hemisphere consistent with hyperboloid

This commit is contained in:
Zeno Rogue 2024-06-28 00:00:33 +02:00
parent bcf250a9fb
commit 4685c3e733

View File

@ -360,7 +360,7 @@ EX int get_side(const hyperpoint& H) {
if(pmodel == mdHemisphere && !sphere) { if(pmodel == mdHemisphere && !sphere) {
hyperpoint res; hyperpoint res;
applymodel(shiftless(H), res); applymodel(shiftless(H), res);
return res[2] < 0 ? -1 : 1; return res[2] < 0 ? 1 : -1;
} }
if(pmodel == mdHemisphere && sphere) { if(pmodel == mdHemisphere && sphere) {
auto H1 = H; auto H1 = H;