1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 06:33:19 +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;
}
hyperpoint space_to_perspective(hyperpoint z, ld alpha = vid.alpha);
hyperpoint space_to_perspective(hyperpoint z, ld alpha) {
EX hyperpoint space_to_perspective(hyperpoint z, ld alpha IS(vid.alpha)) {
ld s = 1 / (alpha + z[LDIM]);
z[0] *= s;
z[1] *= s;