summaryrefslogtreecommitdiff
path: root/shared_cpp
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-06-17 21:32:57 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-06-17 21:32:57 -0400
commit2ab6b6cfe81505b029f2da397cef0bb58989444f (patch)
tree41c581c80310c060dcbdcb049ce88970ca418d72 /shared_cpp
parent8748228bc9effa4779f4c1062f5fbc07f1d07a60 (diff)
(mkosarek) Beginning to explain rigidbody physics in a reasonable way
Diffstat (limited to 'shared_cpp')
-rw-r--r--shared_cpp/mathlib.h1
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;