summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/camera.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-07-16 16:57:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-07-16 16:57:59 +0200
commite016dca372bf69f3bb4967a8aba374bc04aea3b4 (patch)
tree73249375dc7a666acee8c7349e56c095cd6e4369 /tracker-pt/camera.cpp
parent1ac33e5d5aea97448c71ea58b12492ae219e88f1 (diff)
compat/math-imports: use it
Diffstat (limited to 'tracker-pt/camera.cpp')
-rw-r--r--tracker-pt/camera.cpp5
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;