]>
Dogcows Code - chaz/rasterize/blob - aabb.h
3 * CS5600 University of Utah
5 * mcgarvey@eng.utah.edu
15 * An axis-aligned bounding box.
22 typedef struct aabb aabb_t
;
25 * Initialize a axis-aligned bounding box.
28 void aabb_init(aabb_t
* b
, vec_t min
, vec_t max
)
36 * Create a new axis-aligned bounding box.
39 aabb_t
aabb_new(vec_t min
, vec_t max
)
42 aabb_init(&b
, min
, max
);
46 #define AABB_UNIT aabb_new(vec_new(S(-0.5), S(-0.5), S(-0.5)), \
47 vec_new(S( 0.5), S( 0.5), S( 0.5)))
This page took 0.038585 seconds and 4 git commands to generate.