summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-24 12:03:53 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-24 12:03:53 +0200
commit71a90c382e390a6424ff57ad64afa9075823c1c8 (patch)
tree351f9b61c2a4640f4dd5f1000512789d67c93b47 /tracker-aruco/ftnoir_tracker_aruco.cpp
parent70832cc3b198998fa506211bd2d90f1a9c3e3458 (diff)
tracker/aruco: minor fixes
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp
index 171e3f26..388eebe6 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.cpp
+++ b/tracker-aruco/ftnoir_tracker_aruco.cpp
@@ -227,7 +227,7 @@ cv::Point3f aruco_tracker::rotate_model(float x, float y, settings::rot mode)
using std::cos;
using std::sin;
- const float theta = int(mode) * 90/4. * M_PI/180;
+ const double theta = int(mode) * 90/4. * M_PI/180;
pt.x = x * cos(theta) - y * sin(theta);
pt.y = y * cos(theta) + x * sin(theta);
}