From 18cc8cbba39d2395ccbefd38cecece7a1b93fb0c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 15 Dec 2022 11:43:43 +0100 Subject: [PATCH] small fix in euc_in_noniso --- hyperpoint.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index 7eee3721..2f59fc69 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -883,16 +883,18 @@ EX void swapmatrix(transmatrix& T) { } else if(geom3::euc_in_nil()) { if(!geom3::flipped) { - hyperpoint h1 = T * C02; + hyperpoint h1 = get_column(T, 2); // rotations are illegal anyway... T = eupush(hyperpoint(h1[0] * geom3::euclid_embed_scale, 0, h1[1] * geom3::euclid_embed_scale, 1)); + return; } } else if(geom3::euc_in_solnih()) { if(!geom3::flipped) { - hyperpoint h1 = T * C02; + hyperpoint h1 = get_column(T, 2); // rotations are illegal anyway... T = eupush(hyperpoint(h1[0] * geom3::euclid_embed_scale, h1[1] * geom3::euclid_embed_scale, 0, 1)); + return; } } else if(geom3::in_product()) {