diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-21 12:01:43 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-21 12:01:43 +0200 |
commit | 107570e6288d266825724010a6f0149eaaac40db (patch) | |
tree | ab357889f6cd009e6e6a89e89657c377d4bb05ab /tracker-pt/ftnoir_tracker_pt.h | |
parent | 1c22f4a19a0cfa6b593b72754acb9ea97fbded13 (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 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h index 047aedda..513c9b2c 100644 --- a/tracker-pt/ftnoir_tracker_pt.h +++ b/tracker-pt/ftnoir_tracker_pt.h @@ -33,8 +33,6 @@ class TrackerDialog_PT; // Constantly processes the tracking chain in a separate thread class Tracker_PT : public QThread, public ITracker { - static constexpr f pi = constants::pi; - Q_OBJECT friend class camera_dialog; friend class TrackerDialog_PT; @@ -80,8 +78,8 @@ private: volatile unsigned char commands; volatile bool ever_success; - static constexpr f rad2deg = f(180/OPENTRACK_PI); - //static constexpr float deg2rad = float(OPENTRACK_PI/180); + static constexpr f rad2deg = f(180/M_PI); + //static constexpr float deg2rad = float(M_PI/180); }; class TrackerDll : public Metadata |