4 #include "cgmath/cgmath.h"
16 struct vertex *verts; /* dynarr */
19 float plane_dist(const struct plane *p, const cgm_vec3 *pt);
20 float plane_sdist(const struct plane *p, const cgm_vec3 *pt);
21 void midplane(struct plane *p, const cgm_vec3 *a, const cgm_vec3 *b);
23 void poly_plane(const struct poly *poly, struct plane *plane);
25 /* returns negative if there's no intersection, parametric distance if there is */
26 float ray_plane(const cgm_ray *ray, const struct plane *plane);
27 float ray_poly(const cgm_ray *ray, const struct poly *poly);