diff options
author | UnavailableDev <ggwildplay@gmail.com> | 2023-04-03 10:06:00 +0200 |
---|---|---|
committer | UnavailableDev <ggwildplay@gmail.com> | 2023-04-03 10:06:00 +0200 |
commit | cd9d3141626e7be29b69da15b989d23eb63e46f0 (patch) | |
tree | 402b4334d08645135cd035c26207aeb148ab1bad /src/engine/maths.h | |
parent | db78763b67a75be924cf6940258b026ba962cfe0 (diff) |
sprite rendering, collision fix
Diffstat (limited to 'src/engine/maths.h')
-rw-r--r-- | src/engine/maths.h | 1 |
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)) |