1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-11 21:33:16 +00:00

eupoint(x,y) now returns the point at Euclidean (x,y)

This commit is contained in:
Zeno Rogue 2025-03-02 21:28:01 +01:00
parent cd21ec8900
commit 356deb63a2

View File

@ -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))); }