summaryrefslogtreecommitdiffhomepage
path: root/opentrack/tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-01 06:03:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-01 08:57:59 +0100
commitb183a06d1f02f7c1adbf50ab3d6b0b41b8db817f (patch)
tree4a3ea79e156a2e31caf00bfc53f7c60d61659dff /opentrack/tracker.cpp
parent8f83609ed94e1bbd4173f15221e69f92fcc492eb (diff)
revert centering changes
Diffstat (limited to 'opentrack/tracker.cpp')
-rw-r--r--opentrack/tracker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index 8c0ef842..6e26755c 100644
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -48,8 +48,6 @@ double Tracker::map(double pos, bool invertp, Mapping& axis)
return fc.getValue(pos) + axis.opts.zero;
}
-static constexpr int x = 1, y = 0, z = 2;
-
// http://stackoverflow.com/a/18436193
static dmat<3, 1> rmat_to_euler(const dmat<3, 3>& R)
{
@@ -64,6 +62,7 @@ static dmat<3, 1> rmat_to_euler(const dmat<3, 3>& R)
// tait-bryan angles, not euler
static dmat<3, 3> euler_to_rmat(const double* input)
{
+ static constexpr int x = 1, y = 0, z = 2;
static constexpr double pi = 3.141592653;
const auto H = input[1] * pi / 180;
const auto P = input[0] * pi / 180;