1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-18 15:37:40 +00:00

clearer functions bt::bt_to_minkowski and bt::minkowski_to_bt

This commit is contained in:
Zeno Rogue
2021-10-02 19:49:29 +02:00
parent e70e2fc404
commit 1458929a5d
2 changed files with 20 additions and 6 deletions

View File

@@ -17,10 +17,8 @@ EX hyperpoint final_coords(hyperpoint h) {
if(sn::in() || !bt::in())
return ultra_normalize(h);
#if CAP_BT
if(bt::in()) {
ld yy = log(2) / 2;
return bt::parabolic3(h[0], h[1]) * xpush0(yy*h[2]);
}
if(bt::in())
return bt::bt_to_minkowski(h);
#endif
return h;
}