Math/Algorithm: Fix missing implementation of Clamp for Angles
This commit is contained in:
parent
b6094bf1dd
commit
12e9edd2d7
|
|
@ -169,7 +169,7 @@ namespace Nz
|
||||||
template<typename T, AngleUnit Unit>
|
template<typename T, AngleUnit Unit>
|
||||||
constexpr Angle<Unit, T> Clamp(Angle<Unit, T> value, T min, T max)
|
constexpr Angle<Unit, T> Clamp(Angle<Unit, T> value, T min, T max)
|
||||||
{
|
{
|
||||||
return T();
|
return std::max(std::min(value.value, max), min);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue