summaryrefslogtreecommitdiffhomepage
path: root/pose-widget
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-21 12:01:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-21 12:01:43 +0200
commit107570e6288d266825724010a6f0149eaaac40db (patch)
treeab357889f6cd009e6e6a89e89657c377d4bb05ab /pose-widget
parent1c22f4a19a0cfa6b593b72754acb9ea97fbded13 (diff)
many: remove compat/pi-constant.hpp
With -D_USE_MATH_DEFINES MSVC defines the standard M_PI and friends. Since this preprocessor definition is now always passed as part of the build system for MSVC. We can use M_PI as if on a mission.
Diffstat (limited to 'pose-widget')
-rw-r--r--pose-widget/glwidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/pose-widget/glwidget.cpp b/pose-widget/glwidget.cpp
index a2a76726..4b5e9731 100644
--- a/pose-widget/glwidget.cpp
+++ b/pose-widget/glwidget.cpp
@@ -7,7 +7,6 @@
#include "glwidget.h"
#include "api/is-window-visible.hpp"
-#include "compat/pi-constant.hpp"
#include <cmath>
#include <algorithm>
#include <QPainter>
@@ -52,7 +51,7 @@ void GLWidget::rotateBy_real(double xAngle, double yAngle, double zAngle, double
using std::sin;
using std::cos;
- static constexpr double d2r = OPENTRACK_PI / 180;
+ static constexpr double d2r = M_PI / 180;
translation = vec3(x, y, z);