diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-03-04 17:39:43 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-03-04 17:39:43 +0100 |
commit | f5da0719c5790c72524310cf329ac6755d6b7ef4 (patch) | |
tree | 8c1dc48c1369da473a17175c7ba182c1d789b4f3 | |
parent | 7dcc6ebdf12bba6273f091cf7b19b539edcb9993 (diff) |
compat/euler: fix axis signs
-rw-r--r-- | compat/euler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/euler.cpp b/compat/euler.cpp index e9789bee..39d2b116 100644 --- a/compat/euler.cpp +++ b/compat/euler.cpp @@ -14,14 +14,14 @@ euler_t OTR_COMPAT_EXPORT rmat_to_euler(const rmat& R) alpha = atan2( R(1,0), R(0,0)); gamma = atan2( R(2,1), R(2,2)); - return { alpha, beta, gamma }; + return { alpha, -beta, gamma }; } rmat OTR_COMPAT_EXPORT euler_to_rmat(const euler_t& e) { - const double X = -e(2); + const double X = e(2); const double Y = -e(1); - const double Z = -e(0); + const double Z = e(0); const double cx = cos(X); const double sx = sin(X); |