diff options
Diffstat (limited to 'shared_cpp')
-rw-r--r-- | shared_cpp/mathlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shared_cpp/mathlib.h b/shared_cpp/mathlib.h index c922032..fc2ef0c 100644 --- a/shared_cpp/mathlib.h +++ b/shared_cpp/mathlib.h @@ -7,6 +7,7 @@ #define MAX(x, y) (((x) > (y)) ? (x) : (y)) #define MIN(x, y) (((x) < (y)) ? (x) : (y)) #define ABS(x) (x < 0 ? -x : x) +#define SIGN(x) (x < 0 ? -1 : 1) struct Vector2 { float x = 0; |