Audio/AudioDevice: Improve GetListenerRotation

This commit is contained in:
Jérôme Leclercq
2022-03-17 13:34:47 +01:00
parent 6165b3a101
commit 01061380ee
6 changed files with 56 additions and 7 deletions

View File

@@ -381,6 +381,27 @@ namespace Nz
return ToRadianAngle();
}*/
/*!
* \brief Helps to represent the sign of the angle
* \return A constant reference to this angle
*/
template<AngleUnit Unit, typename T>
constexpr const Angle<Unit, T>& Angle<Unit, T>::operator+() const
{
return *this;
}
/*!
* \brief Negates the angle
* \return An angle with a negated value
*/
template<AngleUnit Unit, typename T>
constexpr Angle<Unit, T> Angle<Unit, T>::operator-() const
{
return Angle(-value);
}
/*!
* \brief Addition operator
* \return Adds two angles together