diff options
Diffstat (limited to 'tracker-steamvr')
-rw-r--r-- | tracker-steamvr/steamvr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tracker-steamvr/steamvr.cpp b/tracker-steamvr/steamvr.cpp index 2552be56..0fc07afc 100644 --- a/tracker-steamvr/steamvr.cpp +++ b/tracker-steamvr/steamvr.cpp @@ -260,9 +260,9 @@ void steamvr::matrix_to_euler(double& yaw, double& pitch, double& roll, const vr using std::atan2; using std::asin; - yaw = atan2(result.m[2][0], result.m[0][0]); - pitch = atan2(result.m[1][1], result.m[1][2]); - roll = asin(result.m[1][0]); + yaw = atan2(double(result.m[2][0]), double(result.m[0][0])); + pitch = atan2(double(result.m[1][1]), double(result.m[1][2])); + roll = asin(double(result.m[1][0])); } steamvr_dialog::steamvr_dialog() |