From f6e617535ebc23b1d802af3abb0ec0b4057e7011 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 6 Jun 2020 19:11:47 +0200 Subject: [PATCH] fixed to_other_side in sphere --- hyperpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index d22633ce..c980105f 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -403,7 +403,7 @@ EX transmatrix to_other_side(hyperpoint h1, hyperpoint h2) { else d1 = atan_auto(-v[LDIM] / h1[LDIM]); - hyperpoint hm = h1 * cos_auto(d1) + v * sin_auto(d1); + hyperpoint hm = h1 * cos_auto(d1) + (sphere ? -1 : 1) * v * sin_auto(d1); return rspintox(hm) * xpush(-hdist0(hm) * 2) * spintox(hm); }