diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-16 16:26:46 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-16 18:04:37 +0200 |
commit | b0fddf1ea60fb3c2c8e2cd3d061e0a0ec5c54f93 (patch) | |
tree | 94032c89b7e84e43bceb49bbc605f3ed803bd8d9 | |
parent | b3476cc5f25c6039ebec6174c9e719f0ca37d24f (diff) |
tracker/pt: use trig overloads
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<int>(s.fov) * pi / 180.; |