1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-10 06:16:00 +00:00

refactored the degree constant

This commit is contained in:
Zeno Rogue
2018-11-08 18:18:25 +01:00
parent 071e9a5cac
commit d1d2a300c4
12 changed files with 25 additions and 23 deletions

View File

@@ -158,9 +158,9 @@ transmatrix getOrientation() {
beta = EM_ASM_DOUBLE({ return rotation_beta; });
gamma = EM_ASM_DOUBLE({ return rotation_gamma; });
return
rotmatrix(alpha * M_PI / 180, 0, 1) *
rotmatrix(beta * M_PI / 180, 1, 2) *
rotmatrix(gamma * M_PI / 180, 0, 2);
rotmatrix(alpha * degree, 0, 1) *
rotmatrix(beta * degree, 1, 2) *
rotmatrix(gamma * degree, 0, 2);
}
#endif