1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +00:00

product: fixed hpxy in S2xE -- the bug caused asymmetric models

This commit is contained in:
Zeno Rogue 2020-03-21 09:29:08 +01:00
parent 5bd291784b
commit 0d5625221e

View File

@ -305,7 +305,7 @@ EX ld edge_of_triangle_with_angles(ld alpha, ld beta, ld gamma) {
}
EX hyperpoint hpxy(ld x, ld y) {
return hpxyz(x,y, sl2 ? sqrt(1+x*x+y*y) : translatable ? 1 : sphere ? sqrt(1-x*x-y*y) : sqrt(1+x*x+y*y));
return PIU(hpxyz(x,y, sl2 ? sqrt(1+x*x+y*y) : translatable ? 1 : sphere ? sqrt(1-x*x-y*y) : sqrt(1+x*x+y*y)));
}
EX hyperpoint hpxy3(ld x, ld y, ld z) {