diff --git a/Code/OysterMath/LinearMath.h b/Code/OysterMath/LinearMath.h index ae299ed9..4d8b4efd 100644 --- a/Code/OysterMath/LinearMath.h +++ b/Code/OysterMath/LinearMath.h @@ -211,7 +211,7 @@ namespace LinearAlgebra template inline Quaternion Slerp( const Quaternion &start, const Quaternion &end, const ScalarType &t ) { - ScalarType angle = (ScalarType)::std::acos( Vector4(start.imaginary, start.real).Dot(Vector4(end.imaginary, end.real)) ); + ScalarType angle = (ScalarType)::std::acos( Vector4(start.imaginary, start.real).Dot(Vector4(end.imaginary, end.real)) ); Quaternion result = start * (ScalarType)::std::sin( angle * (1 - t) ); result += end * (ScalarType)::std::sin( angle * t ); result *= (ScalarType)1.0f / (ScalarType)::std::sin( angle );