diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-02 06:04:05 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-02 06:04:05 +0100 |
commit | c044ce0d0830902b9ca86dcd9a725e5ef4f72eb1 (patch) | |
tree | 30283eea8cbc4d73ee85440f1e1858ea276e5245 /opentrack/tracker.h | |
parent | 69dc9c96a1f544857d3909dd0412515840d544ca (diff) |
use quaternions for centering
@KyokushinPL says was the only version that worked. Let's give it a try.
Goddamn issue: #63
Diffstat (limited to 'opentrack/tracker.h')
-rw-r--r-- | opentrack/tracker.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opentrack/tracker.h b/opentrack/tracker.h index 23939576..feb1f903 100644 --- a/opentrack/tracker.h +++ b/opentrack/tracker.h @@ -7,6 +7,7 @@ #include "plugin-support.h" #include "mappings.hpp" #include "pose.hpp" +#include "quat.hpp" #include "simple-mat.hpp" #include "../qfunctionconfigurator/functionconfig.h" @@ -32,7 +33,7 @@ private: std::atomic<bool> should_quit; SelectedLibraries const& libs; - dmat<3, 3> r_b; + Quat q_b; double t_b[3]; double map(double pos, bool invertp, Mapping& axis); |