1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

export to_square

This commit is contained in:
Zeno Rogue 2024-05-25 11:46:53 +02:00
parent 89763be7d2
commit 9f711627f1

View File

@ -559,7 +559,7 @@ ld ellFaux(ld cos_phi, ld sin_phi, ld k) {
ld sqrt_clamp(ld x) { if(x<0) return 0; return sqrt(x); }
hyperpoint to_square(hyperpoint H) {
EX hyperpoint to_square(hyperpoint H) {
ld d = hypot_d(2, H);
ld x = d / (H[2] + 1);