use quat_identity

master
Olivier Sohn ago%!(EXTRA string=8 years)
parent 6f61bb4d2e
commit 6bd81b8fbc
  1. 4
      glm/gtx/quaternion.inl

@ -185,8 +185,8 @@ namespace glm
vec<3, T, Q> rotationAxis;
if(cosTheta >= static_cast<T>(1) - epsilon<T>()) {
// orig and dest point in the same direction : return identity quaternion.
return quat(1, 0, 0, 0);
// orig and dest point in the same direction
return quat_identity();
}
if(cosTheta < static_cast<T>(-1) + epsilon<T>())

Loading…
Cancel
Save