Refactor and add reflections

This commit is contained in:
2024-02-04 19:07:34 +00:00
parent 6d8f332500
commit c2560ccbdd
8 changed files with 314 additions and 253 deletions

14
src/math/math_utils.c Normal file
View File

@@ -0,0 +1,14 @@
#include "math/math_utils.h"
#include "c_cpp_aliases/aliases.h"
f32 clamp(f32 value, f32 min, f32 max) {
if (value < min) {
return min;
}
if (value > max) {
return max;
}
return value;
}