diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-18 12:14:51 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-19 07:17:22 +0200 |
commit | a9b804e18c811c781a099a70b960f5bbde61257d (patch) | |
tree | 069a7de35557f4d9ff141d795d287e4ac128f625 /tracker-pt/point_extractor.h | |
parent | 9fc8ebfd8ab54b9fe1caaf60147dd43a573d67ef (diff) |
some: replace hardcoded pi values with the same pi constant
We can't depend on M_PI existing after including cmath.
Diffstat (limited to 'tracker-pt/point_extractor.h')
-rw-r--r-- | tracker-pt/point_extractor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-pt/point_extractor.h b/tracker-pt/point_extractor.h index 52b4cb32..16740b91 100644 --- a/tracker-pt/point_extractor.h +++ b/tracker-pt/point_extractor.h @@ -13,6 +13,7 @@ #include <opencv2/imgproc/imgproc.hpp> #include "ftnoir_tracker_pt_settings.h" +#include "opentrack-compat/pi-constant.hpp" #include <QMutex> #include <vector> @@ -29,7 +30,7 @@ public: settings_pt s; private: - static constexpr double pi = 3.14159265359; + static constexpr double pi = OPENTRACK_PI; std::vector<vec2> points; QMutex mtx; |