mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-09 12:16:45 +00:00
fixup to coordinates
This commit is contained in:
parent
c0c6f44c19
commit
a6d53944cd
@ -1034,6 +1034,12 @@ EX hyperpoint get_horopoint(hyperpoint h) {
|
||||
return get_horopoint(h[0], h[1]);
|
||||
}
|
||||
|
||||
EX hyperpoint inverse_horopoint(hyperpoint h) {
|
||||
hyperpoint h1 = deparabolic13(h);
|
||||
h1[1] /= 2 * bt::xy_mul(); h1[0] *= -1;
|
||||
return h1;
|
||||
}
|
||||
|
||||
EX hyperpoint get_corner_horo_coordinates(cell *c, int i) {
|
||||
ld yy = log(2) / 2;
|
||||
ld xx = 1 / 2.;
|
||||
|
Loading…
x
Reference in New Issue
Block a user