mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-04 05:09:18 +00:00
solv:: fixed another potential problem
This commit is contained in:
parent
eb747e761f
commit
3caf700868
@ -224,7 +224,7 @@ EX namespace sn {
|
|||||||
EX hyperpoint table_to_azeq(hyperpoint x) {
|
EX hyperpoint table_to_azeq(hyperpoint x) {
|
||||||
// Poincare to azimuthal equidistant
|
// Poincare to azimuthal equidistant
|
||||||
ld hr = sqhypot_d(3, x);
|
ld hr = sqhypot_d(3, x);
|
||||||
if(hr == 0) return point3(0,0,0);
|
if(hr < 1e-5) return x * 2;
|
||||||
if(hr >= 1) return x * 60;
|
if(hr >= 1) return x * 60;
|
||||||
ld hz = (1 + hr) / (1 - hr);
|
ld hz = (1 + hr) / (1 - hr);
|
||||||
ld d = (hz+1) * acosh(hz) / sinh(acosh(hz));
|
ld d = (hz+1) * acosh(hz) / sinh(acosh(hz));
|
||||||
|
Loading…
Reference in New Issue
Block a user