diff --git a/source/ps/MathUtil.h b/source/ps/MathUtil.h index b6b1a010ad..9a9a51a6f3 100755 --- a/source/ps/MathUtil.h +++ b/source/ps/MathUtil.h @@ -59,7 +59,7 @@ namespace MathUtil // NAME: Abs // PURPOSE: Calculates the Absolute value // - template + template T Abs(const T &num) { if( num < 0) @@ -72,7 +72,7 @@ namespace MathUtil // NAME: Clamp // PURPOSE: Forces num to be between lowerBound and upperBound // - template + template T Clamp(T &num, const _int &lowerBound,const _int &upperBound) { if(num <= lowerBound) @@ -86,7 +86,7 @@ namespace MathUtil // NAME: Max // PURPOSE: Returns the largest number. // - template + template T Max(const T &num1, const T &num2) { if( num1 > num2) @@ -100,7 +100,7 @@ namespace MathUtil // NAME: Min // PURPOSE: Returns the smallest number. // - template + template T Min(const T &num1, const T &num2) { if( num1 < num2) @@ -115,7 +115,7 @@ namespace MathUtil // PURPOSE: Returns 1 if the number is > 0, -1 if it's < 0, // otherwise returns 0. // - template + template _int Sign(const T &num) { if( num > 0 ) @@ -133,7 +133,7 @@ namespace MathUtil // NOTES: Num should be less than the square root of the // maximum representable number for the data type. // - template + template inline _double Square(const T &num) { return num*num; @@ -144,7 +144,7 @@ namespace MathUtil // NAME: Swap // PURPOSE: Swaps two numbers // - template + template void Swap(T *num1, T *num2) { T temp = num1; @@ -157,7 +157,7 @@ namespace MathUtil // NAME: Wrap // PURPOSE: Wraps num between lowerBound and upperBound. // - template + template PS_RESULT Wrap(T *num,const T &lowerBound, const T &upperBound) { if(lowerBound >= upperBound) @@ -201,4 +201,4 @@ namespace MathUtil _float SignedModulus(const _float &num, const _float &n); _double SignedModulus(const _double &num, const _double &n); } -#endif \ No newline at end of file +#endif