Added geom.

This commit is contained in:
2025-12-20 09:10:07 -05:00
parent 903820d635
commit cffc64f3e9

26
src/include/geom.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef GEOM_H
#define GEOM_H
// The maximum number of Tris in a Plate.
#define NTRI 4
typedef struct {
int x, y;
} Pt;
typedef struct {
Pt* a;
Pt* b;
} Edge;
typedef struct {
Pt a;
Pt b;
Pt c;
} Tri;
typedef struct {
Tri tris[NTRI];
} Plate;
#endif