From 83c0ade9d68f2e6cfd66b6895216e200f5fc9cf3 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 9 May 2020 00:57:59 +0200 Subject: [PATCH] revert hyperbolic qtm --- nonisotropic.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nonisotropic.cpp b/nonisotropic.cpp index 5c1339e2..8f42f9c0 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -1931,6 +1931,17 @@ EX namespace rots { /** reinterpret the given point of rotspace as a rotation matrix in the underlying geometry */ EX transmatrix qtm(hyperpoint h) { + + if(hyperbolic) { + hyperpoint k = slr::to_phigans(h); + ld z = k[2]; k[2] = 0; + ld r = hypot_d(2, k); + // k[1] = -k[1]; + k[0] = -k[0]; + if(r) k = tangent_length(k, asinh(r) * 2); + return spin(-z * 2) * rgpushxto0(direct_exp(k)); + } + ld& x = h[0]; ld& y = h[1]; ld& z = h[2];