1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-01 21:11:21 +00:00

ray:: now works with Binary4 product

This commit is contained in:
Zeno Rogue
2021-10-07 21:44:29 +02:00
parent 83da34d6ac
commit 569c968a41
3 changed files with 89 additions and 28 deletions

View File

@@ -772,10 +772,11 @@ hyperpoint ray_kleinize(hyperpoint h, int id, ld pz) {
if(hyperbolic && bt::in()) {
// ld co = vid.binary_width / log(2) / 4;
// hyperpoint res = point31(h[2]*log(2)/2, h[0]*co, h[1]*co);
return deparabolic13(bt::bt_to_minkowski(h));
return deparabolic13(final_coords(h));
}
#endif
if(prod) {
if(bt::in()) return point3(h[0], h[1], pz);
return point3(h[0]/h[2], h[1]/h[2], pz);
}
return kleinize(h);