X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgeom.h;h=b0fbb1d228dd172d20020ed0e37704059979ffa0;hb=HEAD;hp=2233c674e9436e483023dbbf1d45f695778c96fb;hpb=4e99a80f90725d45deddf8118782fb9d49a60743;p=cyberay diff --git a/src/geom.h b/src/geom.h index 2233c67..b0fbb1d 100644 --- a/src/geom.h +++ b/src/geom.h @@ -30,6 +30,8 @@ struct rayhit { int ray_triangle(cgm_ray *ray, struct triangle *tri, float tmax, struct rayhit *hit); int ray_aabox_any(cgm_ray *ray, struct aabox *box, float tmax); +void aabox_init(struct aabox *box); +void aabox_addface(struct aabox *box, struct triangle *tri); void aabox_union(struct aabox *res, struct aabox *a, struct aabox *b); float aabox_surf_area(struct aabox *box); float surf_area(float dx, float dy, float dz);