started on the fracture code
[meshfrac] / src / geom.h
diff --git a/src/geom.h b/src/geom.h
new file mode 100644 (file)
index 0000000..fa492f0
--- /dev/null
@@ -0,0 +1,14 @@
+#ifndef GEOM_H_
+#define GEOM_H_
+
+#include "cgmath/cgmath.h"
+
+struct plane {
+       cgm_vec3 pt, norm;
+};
+
+float plane_dist(const struct plane *p, const cgm_vec3 *pt);
+float plane_sdist(const struct plane *p, const cgm_vec3 *pt);
+void midplane(struct plane *p, const cgm_vec3 *a, const cgm_vec3 *b);
+
+#endif /* GEOM_H_ */