diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-25 11:01:48 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-25 11:01:48 +0200 |
commit | 71df21dcc59c2b935f1301dfd9ada1e2c3019f14 (patch) | |
tree | be9bbe914d43fa966207ea545ea36b094f723b1d /opentrack/simple-mat.hpp | |
parent | de97124a4bd12bdb903eddff27d61fec288af48c (diff) |
api/simple-mat: use correct rmat -> euler formula
Diffstat (limited to 'opentrack/simple-mat.hpp')
-rw-r--r-- | opentrack/simple-mat.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/opentrack/simple-mat.hpp b/opentrack/simple-mat.hpp index 93d0d0c9..f1ad0717 100644 --- a/opentrack/simple-mat.hpp +++ b/opentrack/simple-mat.hpp @@ -12,7 +12,6 @@ #include <initializer_list> #include <type_traits> -#include <cmath> #include <utility> namespace { @@ -268,7 +267,7 @@ template<int y, int x> using dmat = Mat<double, y, x>; using rmat = dmat<3, 3>; using euler_t = dmat<3, 1>; -rmat OPENTRACK_API_EXPORT euler_to_rmat(const euler_t input); +OPENTRACK_API_EXPORT rmat euler_to_rmat(const euler_t& input); // http://stackoverflow.com/a/18436193 euler_t OPENTRACK_API_EXPORT rmat_to_euler(const dmat<3, 3>& R); |