diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-07 06:53:53 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-07 06:53:53 +0100 |
commit | 4814dc521b43a0d9b54c5c56300872fd3667189d (patch) | |
tree | 4a7b64031687ddb7c9fa597f5e17c644c3798170 /opentrack/tracker.h | |
parent | 2cf1d750c2e834596c0556a16ea2e4b3fdd7003f (diff) |
impl centering not confused on 90deg boundaries
atan2 returned wrong quadrants, as per
<http://en.wikipedia.org/wiki/Atan2#Definition_and_computation> breakage
on sign change.
Issue: #63
Diffstat (limited to 'opentrack/tracker.h')
-rw-r--r-- | opentrack/tracker.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/opentrack/tracker.h b/opentrack/tracker.h index feb1f903..23939576 100644 --- a/opentrack/tracker.h +++ b/opentrack/tracker.h @@ -7,7 +7,6 @@ #include "plugin-support.h" #include "mappings.hpp" #include "pose.hpp" -#include "quat.hpp" #include "simple-mat.hpp" #include "../qfunctionconfigurator/functionconfig.h" @@ -33,7 +32,7 @@ private: std::atomic<bool> should_quit; SelectedLibraries const& libs; - Quat q_b; + dmat<3, 3> r_b; double t_b[3]; double map(double pos, bool invertp, Mapping& axis); |