1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 06:07:12 +00:00

solv:: lazy version of inv_exp

This commit is contained in:
Zeno Rogue
2019-07-31 12:19:39 +02:00
parent 8ba99c42a0
commit b898365d68
3 changed files with 15 additions and 10 deletions

View File

@@ -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;