mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-07 11:52:51 +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;
|
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)) {
|
EX transmatrix eupush(hyperpoint h, ld co IS(1)) {
|
||||||
if(nonisotropic) return nisot::translate(h, co);
|
if(nonisotropic) return nisot::translate(h, co);
|
||||||
if(hyperbolic) { return co ? parabolic13_at(deparabolic13(h)) : inverse(parabolic13_at(deparabolic13(h))); }
|
if(hyperbolic) { return co ? parabolic13_at(deparabolic13(h)) : inverse(parabolic13_at(deparabolic13(h))); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user