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_settings.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_settings.h')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt_settings.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt_settings.h b/tracker-pt/ftnoir_tracker_pt_settings.h index b3f9e402..e742fbbc 100644 --- a/tracker-pt/ftnoir_tracker_pt_settings.h +++ b/tracker-pt/ftnoir_tracker_pt_settings.h @@ -8,10 +8,11 @@ #pragma once -#include "compat/pi-constant.hpp" #include <limits> #include <opencv2/core.hpp> +#include <cmath> + namespace pt_types { using f = double; @@ -19,7 +20,6 @@ namespace pt_types { { constants() = delete; static constexpr f eps = std::numeric_limits<f>::epsilon(); - static constexpr f pi = OPENTRACK_PI; }; template<int n> using vec = cv::Vec<f, n>; |