#ifndef BOX_H #define BOX_H #include "util/vec3f.h" /* Box (struct) * * Axis aligned bounding box * Like an interval, but for Vec3f except float */ typedef struct Box_{ Vec3f lower; Vec3f upper; } Box; //Does a contain b? does not need to be properly contained int does_contain(const Box a, const Box b); //Return intersection box. If disjoin, return invalid box Box box_intersection(const Box a, const Box b); //Check if box is valid int is_valid_box(const Box a); //debug void print_box(const Box a); #endif