From b0fddf1ea60fb3c2c8e2cd3d061e0a0ec5c54f93 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 16 Sep 2016 16:26:46 +0200 Subject: tracker/pt: use trig overloads --- tracker-pt/ftnoir_tracker_pt.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tracker-pt') diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp index fa3fbb46..ded61e5e 100644 --- a/tracker-pt/ftnoir_tracker_pt.cpp +++ b/tracker-pt/ftnoir_tracker_pt.cpp @@ -66,6 +66,10 @@ bool Tracker_PT::get_focal_length(f& ret) const bool res = camera.get_info(info); if (res) { + using std::tan; + using std::atan; + using std::sqrt; + 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(s.fov) * pi / 180.; -- cgit v1.2.3