Math/Angle: Fix implicit conversion to Euler Angles/Quaternion

This commit is contained in:
Jérôme Leclercq
2018-09-06 13:24:29 +02:00
parent 8bcb8756f9
commit 46008531e0
6 changed files with 63 additions and 31 deletions

View File

@@ -319,30 +319,6 @@ namespace Nz
return Detail::AngleUtils<Unit>::ToString(angle);
}
/*!
* \brief Shortcut allowing implicit conversion to Euler angles
* \return Euler Angles representing a 2D rotation by this angle
*
* \see ToEulerAngles
*/
template<AngleUnit Unit, typename T>
Angle<Unit, T>::operator EulerAngles<T>() const
{
return ToEulerAngles();
}
/*!
* \brief Shortcut allowing implicit conversion to Quaternion
* \return Quaternion representing a 2D rotation by this angle
*
* \see ToQuaternion
*/
template<AngleUnit Unit, typename T>
Angle<Unit, T>::operator Quaternion<T>() const
{
return ToQuaternion();
}
/*!
* \brief Converts the angle to an Euler Angles representation
* \return A 2D rotation expressed in Euler angles