From 356deb63a2a1ab6c5dc2a7d0164045aa9f78849f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 2 Mar 2025 21:28:01 +0100 Subject: [PATCH] eupoint(x,y) now returns the point at Euclidean (x,y) --- hyperpoint.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index dd78ea6e..84fdf233 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -719,6 +719,10 @@ EX transmatrix euscale3(ld x, ld y, ld z) { return T; } +EX hyperpoint eupoint(ld x, ld y) { + return hyperpoint(x, y, MDIM == 3 ? 1 : 0, 1); + } + EX transmatrix eupush(hyperpoint h, ld co IS(1)) { if(nonisotropic) return nisot::translate(h, co); if(hyperbolic) { return co ? parabolic13_at(deparabolic13(h)) : inverse(parabolic13_at(deparabolic13(h))); }