summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-21 11:09:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-21 11:09:00 +0200
commitd576eca6a6e894606239f36b54dcb3fe5f0744cf (patch)
tree6ac68e5d63b75c9c5427be28fe24cc4b64f36329 /tracker-pt/ftnoir_tracker_pt.cpp
parentaaf7965df8b423bcacd411931d4cb0bb238ced61 (diff)
tracker/pt: move pi constant to headers
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.cpp')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp
index 6ff19479..2e6fd9b1 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -63,7 +63,6 @@ bool Tracker_PT::get_focal_length(float& ret)
const bool res = camera.get_info(info);
if (res)
{
- static constexpr double pi = 3.14159265359;
const int w = info.res_x, h = info.res_y;
const double diag = sqrt(1. + h/(double)w * h/(double)w);
const double diag_fov = static_cast<int>(s.fov) * pi / 180.;