X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgeom.h;fp=src%2Fgeom.h;h=fa492f035e319faf3dd11b26e4df1ebc825167ee;hb=0b9d8564e9c3785a69829a8faa67f5169185d8fd;hp=0000000000000000000000000000000000000000;hpb=3266468aa891bea6bda03f64ecba7da2a29d09c3;p=meshfrac diff --git a/src/geom.h b/src/geom.h new file mode 100644 index 0000000..fa492f0 --- /dev/null +++ b/src/geom.h @@ -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_ */