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. --- proto-ft/ftnoir_protocol_ft.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'proto-ft/ftnoir_protocol_ft.cpp') diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index 6a2d1cb2..8ac3ba75 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -9,7 +9,8 @@ #include "ftnoir_protocol_ft.h" #include "csv/csv.h" #include "opentrack-library-path.h" -#include "compat/pi-constant.hpp" + +#include check_for_first_run FTNoIR_Protocol::runonce_check = check_for_first_run(); @@ -96,8 +97,7 @@ void FTNoIR_Protocol::pose(const double* headpose) float FTNoIR_Protocol::degrees_to_rads(double degrees) { - static constexpr double pi = OPENTRACK_PI; - return float(degrees*pi/180); + return float(degrees*M_PI/180); } void FTNoIR_Protocol::start_tirviews() -- cgit v1.2.3