From e244e3cff8328fb59fdc14a80ddd2c95a8c78d9a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 4 Dec 2018 23:06:24 +0100 Subject: [PATCH] parabolic1 generates a straight line in Euclidean --- hyperpoint.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index c1625082..4d370b3d 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -320,7 +320,10 @@ transmatrix ypush(ld alpha) { } transmatrix parabolic1(ld u) { - return transmatrix {{{-u*u/2+1, u, u*u/2}, {-u, 1, u}, {-u*u/2, u, u*u/2+1}}}; + if(euclid) + return ypush(u); + else + return transmatrix {{{-u*u/2+1, u, u*u/2}, {-u, 1, u}, {-u*u/2, u, u*u/2+1}}}; } // rotate the hyperbolic plane around C0 such that H[1] == 0 and H[0] >= 0