mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-28 16:32:18 +00:00
projective_to_space wa using pconf.alpha instead of alpha
This commit is contained in:
parent
08d1eeaca4
commit
b95549c0ae
@ -63,7 +63,7 @@ EX hyperpoint perspective_to_space(hyperpoint h, ld alpha IS(pconf.alpha), eGeom
|
||||
B /= A; C /= A;
|
||||
|
||||
ld rootsign = 1;
|
||||
if(gc == gcSphere && pconf.alpha > 1) rootsign = -1;
|
||||
if(gc == gcSphere && alpha > 1) rootsign = -1;
|
||||
|
||||
ld hz = B / 2 + rootsign * sqrt(C + B*B/4);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user