Commit 57297e14 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr

Fix compilation warning.

parent 081bf008
......@@ -166,7 +166,7 @@ namespace hpp {
if (!vec3d.isNull()) {
qtQuat = QQuaternion::fromAxisAndAngle(vec3d.normalized(), vec3d.length());
const float theta = vec3d.length();
const float theta = (float) vec3d.length();
qtQuat = QQuaternion(std::cos(theta/2), std::sin(theta/2) * vec3d / theta);
}
......@@ -233,7 +233,7 @@ namespace hpp {
if (!vec3d.isNull()) {
qtQuat = QQuaternion::fromAxisAndAngle(vec3d.normalized(), vec3d.length());
const float theta = vec3d.length();
const float theta = (float) vec3d.length();
qtQuat = QQuaternion(std::cos(theta/2), std::sin(theta/2) * vec3d / theta);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment