diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-04 10:36:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-04 10:36:00 +0200 |
commit | ee7530c39aaa769b7baea5fb4ece27786e04d521 (patch) | |
tree | 1ca2f63c790bdb4d087ec6b05942782079c5dfc0 /opentrack/simple-mat.cpp | |
parent | 299e529fb955eecbc2bc2f2d8830c4f54fe5777d (diff) |
logic/tracker, api/simple-mat: don't convert rad <-> deg all the time
Diffstat (limited to 'opentrack/simple-mat.cpp')
-rw-r--r-- | opentrack/simple-mat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/opentrack/simple-mat.cpp b/opentrack/simple-mat.cpp index 4ab68e0f..367cf365 100644 --- a/opentrack/simple-mat.cpp +++ b/opentrack/simple-mat.cpp @@ -36,9 +36,9 @@ euler_t rmat_to_euler(const dmat<3, 3>& R) // tait-bryan angles, not euler rmat euler_to_rmat(const double* input) { - auto H = input[0] * pi / 180; - auto P = input[1] * pi / 180; - auto B = input[2] * pi / 180; + const double H = input[0]; + const double P = input[1]; + const double B = input[2]; const auto c1 = cos(H); const auto s1 = sin(H); |