entity dir
This commit is contained in:
@@ -42,4 +42,12 @@ uint32_t mathNextPowTwo(uint32_t value);
|
||||
* @param upper The upper bound.
|
||||
* @return The clamped value.
|
||||
*/
|
||||
#define mathClamp(x, lower, upper) (mathMin(upper, mathMax(lower, x)))
|
||||
#define mathClamp(x, lower, upper) (mathMin(upper, mathMax(lower, x)))
|
||||
|
||||
/**
|
||||
* Returns the absolute value of a number.
|
||||
*
|
||||
* @param amt The number to get the absolute value of.
|
||||
* @return The absolute value of the number.
|
||||
*/
|
||||
#define mathAbs(amt) ((amt) < 0 ? -(amt) : (amt))
|
||||
Reference in New Issue
Block a user