From bccb7b1d5d218a15324b060b355ddbe4c4199049 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 2 Feb 2023 19:06:06 +0100 Subject: [PATCH] embeddings:: fixed Clifford torus --- embeddings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embeddings.cpp b/embeddings.cpp index 3d46e8fd..a1026908 100644 --- a/embeddings.cpp +++ b/embeddings.cpp @@ -733,7 +733,7 @@ struct emb_euc_in_sph : emb_euclid_noniso { ld x0 = atan2(a[0], a[2]); ld y0 = atan2(a[1], a[3]); ld z0 = atan2(tx, ty); - return hyperpoint(x0, y0, z0, 1); + return hyperpoint(x0, y0, z0-1, 1); } transmatrix intermediate_to_actual_translation(hyperpoint i) override { return cspin(0, 2, i[0]) * cspin(1, 3, i[1]) * cspin(2, 3, i[2]);