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:
parent
cd21ec8900
commit
356deb63a2
@ -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))); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user