diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-16 16:57:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-16 16:57:59 +0200 |
commit | e016dca372bf69f3bb4967a8aba374bc04aea3b4 (patch) | |
tree | 73249375dc7a666acee8c7349e56c095cd6e4369 /tracker-pt/camera.cpp | |
parent | 1ac33e5d5aea97448c71ea58b12492ae219e88f1 (diff) |
compat/math-imports: use it
Diffstat (limited to 'tracker-pt/camera.cpp')
-rw-r--r-- | tracker-pt/camera.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tracker-pt/camera.cpp b/tracker-pt/camera.cpp index b68fd107..28c95bf4 100644 --- a/tracker-pt/camera.cpp +++ b/tracker-pt/camera.cpp @@ -8,6 +8,7 @@ #include "camera.h" #include "compat/sleep.hpp" #include "compat/camera-names.hpp" +#include "compat/math-imports.hpp" constexpr double Camera::dt_eps; @@ -23,10 +24,6 @@ QString Camera::get_active_name() const void CamInfo::get_focal_length(double& fx) const { - using std::tan; - using std::atan; - using std::sqrt; - const double diag_len = sqrt(double(res_x*res_x + res_y*res_y)); const double aspect_x = res_x / diag_len; //const double aspect_y = res_y / diag_len; |