Browse Source

Math: once again I used a float literal in generic code.

This isn't the first time, 0c055ccfe1 was
a recent discovery also.
pull/168/head
Vladimír Vondruš 2 years ago
parent
commit
975ee0405d
  1. 2
      src/Magnum/Math/Quaternion.h

2
src/Magnum/Math/Quaternion.h

@ -897,7 +897,7 @@ template<class T> Quaternion<T> Quaternion<T>::rotation(const Vector3<T>& normal
rotationAxis /= std::sqrt(dot);
/* Same as Quaternion::rotation(axis, 180°) */
return {rotationAxis, 0.0f};
return {rotationAxis, T(0.0)};
}
/* Vectors are not colinear, calculate a rotation axis */

Loading…
Cancel
Save