From 107570e6288d266825724010a6f0149eaaac40db Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 21 Sep 2016 12:01:43 +0200 Subject: 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. --- pose-widget/glwidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pose-widget') 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 #include #include @@ -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); -- cgit v1.2.3