1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

used EX for space_to_perspective

This commit is contained in:
Zeno Rogue 2019-10-05 12:34:36 +02:00
parent cfc36c7bda
commit a48aea7b8e

View File

@ -72,9 +72,7 @@ hyperpoint perspective_to_space(hyperpoint h, ld alpha, eGeometryClass gc) {
return H; return H;
} }
hyperpoint space_to_perspective(hyperpoint z, ld alpha = vid.alpha); EX hyperpoint space_to_perspective(hyperpoint z, ld alpha IS(vid.alpha)) {
hyperpoint space_to_perspective(hyperpoint z, ld alpha) {
ld s = 1 / (alpha + z[LDIM]); ld s = 1 / (alpha + z[LDIM]);
z[0] *= s; z[0] *= s;
z[1] *= s; z[1] *= s;