mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 09:30:35 +00:00
export to_square
This commit is contained in:
parent
89763be7d2
commit
9f711627f1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user