diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-03 00:09:09 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 07:48:20 +0100 |
commit | 545071e998806235442edda5f575ee61e836abe9 (patch) | |
tree | 45579d717361f24c6f4a06354f5836447e691771 /tracker-pt/pt-api.cpp | |
parent | 4766be01022d6de50f7b42647299860c2d9909b8 (diff) |
cruft
Diffstat (limited to 'tracker-pt/pt-api.cpp')
-rw-r--r-- | tracker-pt/pt-api.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-pt/pt-api.cpp b/tracker-pt/pt-api.cpp index 128dcaea..415f1c13 100644 --- a/tracker-pt/pt-api.cpp +++ b/tracker-pt/pt-api.cpp @@ -10,7 +10,7 @@ double pt_camera_info::get_focal_length(f fov, int res_x, int res_y) const double diag_len = std::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; - const double diag_fov = fov * M_PI/180; + const double diag_fov = fov * pi/180; const double fov_x = 2*std::atan(std::tan(diag_fov*.5) * aspect_x); //const double fov_y = 2*atan(tan(diag_fov*.5) * aspect_y); const double fx = .5 / std::tan(fov_x * .5); |