aboutsummaryrefslogtreecommitdiff
path: root/src/engine/maths.h
diff options
context:
space:
mode:
authorUnavailableDev <ggwildplay@gmail.com>2023-04-03 10:06:00 +0200
committerUnavailableDev <ggwildplay@gmail.com>2023-04-03 10:06:00 +0200
commitcd9d3141626e7be29b69da15b989d23eb63e46f0 (patch)
tree402b4334d08645135cd035c26207aeb148ab1bad /src/engine/maths.h
parentdb78763b67a75be924cf6940258b026ba962cfe0 (diff)
sprite rendering, collision fix
Diffstat (limited to 'src/engine/maths.h')
-rw-r--r--src/engine/maths.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/engine/maths.h b/src/engine/maths.h
index bef287e..6f66042 100644
--- a/src/engine/maths.h
+++ b/src/engine/maths.h
@@ -20,3 +20,4 @@ vec_cor vec_cor2cen(vec_cen in, vec2 halfDistance);
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
#define CLAMP(N,LOWER,UPPER) (MIN(MAX(LOWER, N), UPPER))
+#define CEILI(numerator, denominator) (numerator / denominator + (numerator % denominator != 0))