diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-07 06:56:08 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-07 06:56:08 +0100 |
commit | 604c4e9399559909e2d7a805a728297dc0561ddf (patch) | |
tree | e484785d443a9026b3736b741757552cb565912f | |
parent | 94f08279df5aee576c1981a784d24110f6c295e8 (diff) |
nix unused constant
-rw-r--r-- | opentrack/tracker.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp index 8e8b1e7f..344cfcbb 100644 --- a/opentrack/tracker.cpp +++ b/opentrack/tracker.cpp @@ -51,7 +51,6 @@ double Tracker::map(double pos, bool invertp, Mapping& axis) // http://stackoverflow.com/a/18436193 static dmat<3, 1> rmat_to_euler(const dmat<3, 3>& R) { - static constexpr double pi = 3.141592653; // don't use atan2 here, confuses quadrants. see issue #63 -sh double pitch = atan( -R(0, 2) / sqrt(R(1,2)*R(1,2) + R(2,2)*R(2,2)) ); double roll = atan(R(1, 2) / R(2, 2)); |