From 5764e46bbe9e62c087057981ed6846ac5540d2ae Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 18 Feb 2023 18:32:37 +0100 Subject: [PATCH] fixed orthogonal_move for euclidean same_in_same --- embeddings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/embeddings.cpp b/embeddings.cpp index e5c351fb..66012147 100644 --- a/embeddings.cpp +++ b/embeddings.cpp @@ -494,6 +494,7 @@ struct emb_same_in_same : emb_actual { transmatrix intermediate_to_actual_translation(hyperpoint i) override { return rgpushxto0(logical_to_actual(i)); } hyperpoint actual_to_intermediate(hyperpoint a) override { return actual_to_logical(a); } hyperpoint orthogonal_move(const hyperpoint& h, ld z) override { + if(euclid) { hyperpoint h1 = h; h1[2] += z; return h1; } ld u = 1; if(h[2]) z += asin_auto(h[2]), u /= cos_auto(asin_auto(h[2])); u *= cos_auto(z);