summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_tracker_pt/ftnoir_tracker_pt.cpp')
-rw-r--r--ftnoir_tracker_pt/ftnoir_tracker_pt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
index 6248b225..a76fdb78 100644
--- a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
+++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
@@ -175,7 +175,7 @@ void Tracker::data(THeadPoseData *data)
// extract rotation angles
float alpha, beta, gamma;
- beta = atan( -R(2,0) / sqrt(R(2,1)*R(2,1) + R(2,2)*R(2,2)) );
+ beta = atan( -R(2,0) / (sqrt(R(2,1)*R(2,1) + R(2,2)*R(2,2))) );
alpha = atan( R(1,0) / R(0,0));
gamma = atan( R(2,1) / R(2,2));