4 #include <cgmath/cgmath.h>
30 int ray_triangle(cgm_ray *ray, struct triangle *tri, float tmax, struct rayhit *hit);
31 int ray_aabox_any(cgm_ray *ray, struct aabox *box, float tmax);
33 void aabox_init(struct aabox *box);
34 void aabox_addface(struct aabox *box, struct triangle *tri);
35 void aabox_union(struct aabox *res, struct aabox *a, struct aabox *b);
36 float aabox_surf_area(struct aabox *box);
37 float surf_area(float dx, float dy, float dz);