From 4b946136f0191ecd8a15cdc3912d59ac05ff3330 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 3 Jun 2020 16:11:59 +0200 Subject: [PATCH] fixed orthogonal_move for points which are already moved --- hyperpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index cde11642..9bb81b62 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -575,7 +575,7 @@ EX hyperpoint orthogonal_move(const hyperpoint& h, ld z) { if(nil) return nisot::translate(h) * cpush0(2, z); if(translatable) return hpxy3(h[0], h[1], h[2] + z); ld u = 1; - if(h[2]) z += asin_auto(h[2]), u /= acos_auto(z); + if(h[2]) z += asin_auto(h[2]), u /= cos_auto(asin_auto(h[2])); u *= cos_auto(z); return hpxy3(h[0] * u, h[1] * u, sinh(z)); }