mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-29 20:14:30 +00:00
solv:: lazy version of inv_exp
This commit is contained in:
1 parent
8ba99c42a0
commit
b898365d68
3 files changed
+15
-10
No files matched your search
+1
-1
@@ -320,7 +320,7 @@ void applymodel(hyperpoint H, hyperpoint& ret) {
|
||||
}
|
||||
|
||||
case mdSolPerspective: {
|
||||
auto S = solv::inverse_exp(H);
|
||||
auto S = solv::inverse_exp(H, false);
|
||||
ld ratio = vid.xres / current_display->tanfov / current_display->radius / 2;
|
||||
ret[0] = S[0]/S[2] * ratio;
|
||||
ret[1] = S[1]/S[2] * ratio;
|
||||
|
||||
Reference in new issue
Block a user