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:
parent
cfc36c7bda
commit
a48aea7b8e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user