entity dir

This commit is contained in:
2025-09-17 18:38:14 -05:00
parent f799690d3c
commit 08221af3f8
16 changed files with 369 additions and 58 deletions

View File

@@ -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))