summaryrefslogtreecommitdiffhomepage
path: root/opentrack/tracker.cpp
diff options
context:
space:
mode:
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;