Math/Algorithm: Fix missing implementation of Clamp for Angles

This commit is contained in:
Jérôme Leclercq 2021-06-01 18:04:18 +02:00
parent b6094bf1dd
commit 12e9edd2d7
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ namespace Nz
template<typename T, AngleUnit Unit>
constexpr Angle<Unit, T> Clamp(Angle<Unit, T> value, T min, T max)
{
return T();
return std::max(std::min(value.value, max), min);
}
/*!