mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user