summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/pt-api.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-21 09:37:13 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-21 09:37:13 +0100
commit1ccc6bb7888865b38fcd6234040345a0be66ec1d (patch)
tree9392da03fe704ffb328b1419794149a069e0a26c /tracker-pt/pt-api.cpp
parentd9bef40680c5613397b61cae213f616d3e09f2f1 (diff)
tracker/pt-base: add static pt_camera_info::get_focal_length
For the Wiimote tracker. Adjust usages in tracker/pt. Issue: #718
Diffstat (limited to 'tracker-pt/pt-api.cpp')
-rw-r--r--tracker-pt/pt-api.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-pt/pt-api.cpp b/tracker-pt/pt-api.cpp
index d86ef0c6..298f405a 100644
--- a/tracker-pt/pt-api.cpp
+++ b/tracker-pt/pt-api.cpp
@@ -7,7 +7,7 @@ pt_camera_info::pt_camera_info()
{
}
-double pt_camera_info::get_focal_length() const
+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;