diff --git a/include/Nazara/Math/Angle.hpp b/include/Nazara/Math/Angle.hpp index 70fbbdd1b..e177392fd 100644 --- a/include/Nazara/Math/Angle.hpp +++ b/include/Nazara/Math/Angle.hpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include diff --git a/include/Nazara/Math/Angle.inl b/include/Nazara/Math/Angle.inl index c9c26c04f..fd5658366 100644 --- a/include/Nazara/Math/Angle.inl +++ b/include/Nazara/Math/Angle.inl @@ -118,7 +118,7 @@ namespace Nz } template - void SinCos(std::enable_if_t::value, float> x, float* s, float* cos) + void SinCos(std::enable_if_t::value, float> x, float* s, float* c) { ::sincosf(x, s, c); } @@ -228,7 +228,7 @@ namespace Nz template void Angle::Normalize() { - constexpr T limit = Detail::AngleUtils::GetLimit(); + constexpr T limit = Detail::AngleUtils::template GetLimit(); constexpr T twoLimit = limit * T(2); angle = std::fmod(angle, twoLimit); @@ -404,7 +404,7 @@ namespace Nz template bool Angle::operator==(const Angle& other) const { - return NumberEquals(angle, other.angle, Detail::AngleUtils::GetEpsilon()); + return NumberEquals(angle, other.angle, Detail::AngleUtils::template GetEpsilon()); } /*! @@ -416,7 +416,7 @@ namespace Nz template bool Angle::operator!=(const Angle& other) const { - return !NumberEquals(angle, other.angle, Detail::AngleUtils::GetEpsilon()); + return !NumberEquals(angle, other.angle, Detail::AngleUtils::template GetEpsilon()); } /*!