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. --- logic/tracker.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'logic/tracker.h') diff --git a/logic/tracker.h b/logic/tracker.h index 9c100ea7..1546d910 100644 --- a/logic/tracker.h +++ b/logic/tracker.h @@ -10,7 +10,6 @@ #include -#include "compat/pi-constant.hpp" #include "compat/timer.hpp" #include "api/plugin-support.hpp" #include "mappings.hpp" @@ -26,6 +25,7 @@ #include #include +#include #include "export.hpp" @@ -121,9 +121,8 @@ private: void t_compensate(const rmat& rmat, const euler_t& ypr, euler_t& output, bool rz); void run() override; - static constexpr double pi = OPENTRACK_PI; - static constexpr double r2d = 180. / OPENTRACK_PI; - static constexpr double d2r = OPENTRACK_PI / 180.; + static constexpr double r2d = 180. / M_PI; + static constexpr double d2r = M_PI / 180.; // note: float exponent base is 2 static constexpr double c_mult = 4; -- cgit v1.2.3