1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed equiarea on euclid

This commit is contained in:
Zeno Rogue 2017-11-07 16:37:47 +01:00
parent 96243d143f
commit c81f101b7f

View File

@ -155,7 +155,7 @@ void applymodel(hyperpoint H, hyperpoint& ret) {
ld d = hdist0(H); ld d = hdist0(H);
if(pmodel == 6 && sphere) if(pmodel == 6 && sphere)
d = sqrt(2*(1 - cos(d))) * 1.25; // /1.5 to make it fit on the screen better d = sqrt(2*(1 - cos(d))) * 1.25; // /1.5 to make it fit on the screen better
else if(pmodel == 6) else if(pmodel == 6 && !euclid)
d = sqrt(2*(cosh(d) - 1)) / 1.5; d = sqrt(2*(cosh(d) - 1)) / 1.5;
ret[0] = d * H[0] / rad / 4; ret[0] = d * H[0] / rad / 4;
ret[1] = d * H[1] / rad / 4; ret[1] = d * H[1] / rad / 4;