--- /dev/null
+#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_ */