Added geom.
This commit is contained in:
26
src/include/geom.h
Normal file
26
src/include/geom.h
Normal 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
|
||||
Reference in New Issue
Block a user