started on the fracture code
[meshfrac] / src / geom.h
1 #ifndef GEOM_H_
2 #define GEOM_H_
3
4 #include "cgmath/cgmath.h"
5
6 struct plane {
7         cgm_vec3 pt, norm;
8 };
9
10 float plane_dist(const struct plane *p, const cgm_vec3 *pt);
11 float plane_sdist(const struct plane *p, const cgm_vec3 *pt);
12 void midplane(struct plane *p, const cgm_vec3 *a, const cgm_vec3 *b);
13
14 #endif  /* GEOM_H_ */