From 4da7be39827ea5888ef9c97b1aadf61b0d76347c Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Fri, 7 Feb 2025 11:27:18 -0500 Subject: initial commit (lol) --- mons_math/src/util.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 mons_math/src/util.c (limited to 'mons_math/src/util.c') diff --git a/mons_math/src/util.c b/mons_math/src/util.c new file mode 100644 index 0000000..f0f3ec0 --- /dev/null +++ b/mons_math/src/util.c @@ -0,0 +1,7 @@ +#include "mons_math/util.h" +#include + +int mons_float_approx_equal(float a, float b) { + return fabs(a - b) < MONS_FLOAT_EQUAL_EPSILON; +} + -- cgit v1.2.3