diff --git a/Code/OysterMath/LinearMath.h b/Code/OysterMath/LinearMath.h index e0c7bf9f..23fe0511 100644 --- a/Code/OysterMath/LinearMath.h +++ b/Code/OysterMath/LinearMath.h @@ -377,7 +377,7 @@ namespace LinearAlgebra3D inline ::LinearAlgebra::Vector3 AngularAxis( const ::LinearAlgebra::Quaternion &rotation ) { ScalarType angle = ScalarType(2) * (ScalarType)::std::acos( rotation.real ), - multiplier = angle / (ScalarType)::std::sqrt( rotation.real ); + multiplier = angle / (ScalarType)::std::sqrt( ScalarType(1) - rotation.real * rotation.real ); return multiplier * rotation.imaginary; }