1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-11 18:00:34 +00:00

solv:: fixed another potential problem

This commit is contained in:
Zeno Rogue 2020-03-25 13:43:35 +01:00
parent eb747e761f
commit 3caf700868

View File

@ -224,7 +224,7 @@ EX namespace sn {
EX hyperpoint table_to_azeq(hyperpoint x) {
// Poincare to azimuthal equidistant
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;
ld hz = (1 + hr) / (1 - hr);
ld d = (hz+1) * acosh(hz) / sinh(acosh(hz));