diff --git a/include/Nazara/Math/Angle.hpp b/include/Nazara/Math/Angle.hpp index e1c904204..70fbbdd1b 100644 --- a/include/Nazara/Math/Angle.hpp +++ b/include/Nazara/Math/Angle.hpp @@ -22,9 +22,9 @@ namespace Nz { public: Angle() = default; - Angle(T Angle); - template> explicit Angle(const Angle& Angle) { Set(Angle); } - template> explicit Angle(const Angle& Angle) { Set(Angle); } + Angle(T value); + template> explicit Angle(const Angle& value) { Set(value); } + template> explicit Angle(const Angle& value) { Set(value); } template explicit Angle(const Angle& Angle); Angle(const Angle&) = default; ~Angle() = default; @@ -49,16 +49,16 @@ namespace Nz Angle& operator=(const Angle&) = default; - Angle operator+(const Angle& Angle) const; - Angle operator-(const Angle& Angle) const; + Angle operator+(const Angle& other) const; + Angle operator-(const Angle& other) const; - Angle& operator+=(const Angle& Angle); - Angle& operator-=(const Angle& Angle); + Angle& operator+=(const Angle& other); + Angle& operator-=(const Angle& other); Angle& operator*=(T scalar); Angle& operator/=(T divider); - bool operator==(const Angle& Angle) const; - bool operator!=(const Angle& Angle) const; + bool operator==(const Angle& other) const; + bool operator!=(const Angle& other) const; static Angle Zero(); diff --git a/include/Nazara/Math/Angle.inl b/include/Nazara/Math/Angle.inl index c22e99e2c..c9c26c04f 100644 --- a/include/Nazara/Math/Angle.inl +++ b/include/Nazara/Math/Angle.inl @@ -147,11 +147,11 @@ namespace Nz /*! * \brief Constructs an Angle object with an angle value * - * \param Angle value of the angle + * \param value value of the angle */ template - Angle::Angle(T Angle) : - angle(Angle) + Angle::Angle(T value) : + angle(value) { } @@ -323,10 +323,10 @@ namespace Nz * \brief Addition operator * \return Adds two angles together * - * \param angle Angle to add + * \param other Angle to add */ template - Angle Angle::operator+(const Angle& Angle) const + Angle Angle::operator+(const Angle& other) const { return Angle(angle + Angle.angle); } @@ -335,10 +335,10 @@ namespace Nz * \brief Subtraction operator * \return Subtracts two angles together * - * \param angle Angle to subtract + * \param other Angle to subtract */ template - Angle Angle::operator-(const Angle& Angle) const + Angle Angle::operator-(const Angle& other) const { return Angle(angle - Angle.angle); } @@ -347,10 +347,10 @@ namespace Nz * \brief Adds an angle by another * \return A reference to the angle * - * \param angle Angle to add + * \param other Angle to add */ template - Angle& Angle::operator+=(const Angle& Angle) + Angle& Angle::operator+=(const Angle& other) { angle += Angle.angle; return *this; @@ -360,10 +360,10 @@ namespace Nz * \brief Subtract an angle by another * \return A reference to the angle * - * \param angle Angle to subtract + * \param other Angle to subtract */ template - Angle& Angle::operator-=(const Angle& Angle) + Angle& Angle::operator-=(const Angle& other) { angle -= Angle.angle; return *this; @@ -399,24 +399,24 @@ namespace Nz * \brief Compares the angle to another for equality * \return True if both angles are equal * - * \param Angle The other angle to compare to + * \param other The other angle to compare to */ template - bool Angle::operator==(const Angle& Angle) const + bool Angle::operator==(const Angle& other) const { - return NumberEquals(angle, Angle.angle, Detail::AngleUtils::GetEpsilon()); + return NumberEquals(angle, other.angle, Detail::AngleUtils::GetEpsilon()); } /*! * \brief Compares the angle to another for inequality * \return True if both angles are equal * - * \param Angle The other angle to compare to + * \param other The other angle to compare to */ template - bool Angle::operator!=(const Angle& Angle) const + bool Angle::operator!=(const Angle& other) const { - return !NumberEquals(angle, Angle.angle, Detail::AngleUtils::GetEpsilon()); + return !NumberEquals(angle, other.angle, Detail::AngleUtils::GetEpsilon()); } /*!