Added bounds checking for triangles.

This commit is contained in:
2025-12-20 10:33:12 -05:00
parent cffc64f3e9
commit 3bf2a7b429
10 changed files with 126 additions and 116 deletions

9
src/include/util.h Normal file
View File

@@ -0,0 +1,9 @@
#ifndef UTIL_H
#define UTIL_H
#define MAX(a, b) a ? a > b : b
#define MAX3(a, b, c) MAX(a, MAX(b, c))
#define MIN(a, b) a ? a < b : b
#define MIN3(a, b, c) MIN(a, MIN(b, c))
#endif