Math/Algorithm: Fix Visual Studio error
Former-commit-id: c426979b55e11db423f08a713cb41c7407886d02
This commit is contained in:
parent
fe25249136
commit
3aa6fb9efd
|
|
@ -46,7 +46,8 @@ unsigned int NzIntegralPow(unsigned int base, unsigned int exponent);
|
|||
template<typename T, typename T2> T NzLerp(T from, T to, T2 interpolation);
|
||||
template<typename T> T NzMultiplyAdd(T x, T y, T z);
|
||||
template<typename T> T NzNormalizeAngle(T angle);
|
||||
template<typename T> bool NzNumberEquals(T a, T b, T maxDifference = std::numeric_limits<T>::epsilon());
|
||||
template<typename T> bool NzNumberEquals(T a, T b);
|
||||
template<typename T> bool NzNumberEquals(T a, T b, T maxDifference);
|
||||
NzString NzNumberToString(long long number, nzUInt8 radix = 10);
|
||||
template<typename T> T NzRadianToDegree(T radians);
|
||||
long long NzStringToNumber(NzString str, nzUInt8 radix = 10, bool* ok = nullptr);
|
||||
|
|
|
|||
|
|
@ -330,6 +330,12 @@ T NzNormalizeAngle(T angle)
|
|||
return angle - limit;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
bool NzNumberEquals(T a, T b)
|
||||
{
|
||||
return NzNumberEquals(a, b, std::numeric_limits<T>::epsilon());
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
bool NzNumberEquals(T a, T b, T maxDifference)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue