summaryrefslogtreecommitdiffhomepage
path: root/opentrack-logic/simple-mat.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-12 17:07:38 +0200
committerStanislaw Halik <sthalik@CROOKED-SCHEMER>2016-08-12 17:11:41 +0200
commitc63c29d0e09a939c45f2a209ec7c6f0998138589 (patch)
tree803a7bf2191b2955e4e0de68a1180e863934f983 /opentrack-logic/simple-mat.hpp
parent91755ca9ea20735568b4d5cf40a0a7ee7d5d2b7a (diff)
logic/simple-mat: add untested tait-bryan rotation composition function
Diffstat (limited to 'opentrack-logic/simple-mat.hpp')
-rw-r--r--opentrack-logic/simple-mat.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/opentrack-logic/simple-mat.hpp b/opentrack-logic/simple-mat.hpp
index 09de6004..514e845f 100644
--- a/opentrack-logic/simple-mat.hpp
+++ b/opentrack-logic/simple-mat.hpp
@@ -269,7 +269,11 @@ using euler_t = dmat<3, 1>;
rmat OPENTRACK_LOGIC_EXPORT euler_to_rmat(const euler_t& input);
-// http://stackoverflow.com/a/18436193
-euler_t OPENTRACK_LOGIC_EXPORT rmat_to_euler(const dmat<3, 3>& R);
+euler_t OPENTRACK_LOGIC_EXPORT rmat_to_euler(const rmat& R);
+
+void OPENTRACK_LOGIC_EXPORT tait_bryan_to_matrices(const euler_t& input,
+ rmat& r_roll,
+ rmat& r_pitch,
+ rmat& r_yaw);
} // end ns euler