From 9b4821619ae63ad50e17fea9363d9312de8b5298 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 15 May 2020 14:54:33 +0200 Subject: [PATCH] hpxy was bugged in rotspaces -> fixed --- hyperpoint.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index 2a23ea3f..e883d025 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -328,7 +328,9 @@ EX ld edge_of_triangle_with_angles(ld alpha, ld beta, ld gamma) { } EX hyperpoint hpxy(ld x, ld 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))); + if(sl2) return hyperpoint(x, y, 0, sqrt(1+x*x+y*y)); + if(rotspace) return hyperpoint(x, y, 0, sqrt(1-x*x-y*y)); + return PIU(hpxyz(x,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) {