mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-05 00:41:43 +00:00
perspective_to_space now works with large hr too
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ EX hyperpoint perspective_to_space(hyperpoint h, ld alpha IS(pconf.alpha), eGeom
|
|||||||
ld hr = hx*hx+hy*hy;
|
ld hr = hx*hx+hy*hy;
|
||||||
if(LDIM == 3) hr += h[2]*h[2];
|
if(LDIM == 3) hr += h[2]*h[2];
|
||||||
|
|
||||||
if(hr > .9999 && gc == gcHyperbolic) return Hypc;
|
if(hr >= 1 && gc == gcHyperbolic) return Hypc;
|
||||||
|
|
||||||
ld A, B, C;
|
ld A, B, C;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user