summaryrefslogtreecommitdiffhomepage
path: root/compat/euler.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-08-03 04:37:45 +0000
committerStanislaw Halik <sthalik@misaki.pl>2018-08-04 13:40:26 +0000
commit9021529ff171425d61a3ffec7a41a652799bc6e5 (patch)
tree593aaaebbb3a851583a5f87e139da7b6b1afc8eb /compat/euler.cpp
parenta1356d3811ec57161f48e586f21c618f99a0b841 (diff)
Revert "compat/euler: fix axis signs"
This reverts commit f5da0719c5790c72524310cf329ac6755d6b7ef4.
Diffstat (limited to 'compat/euler.cpp')
-rw-r--r--compat/euler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/euler.cpp b/compat/euler.cpp
index 39d2b116..e9789bee 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);