mav_BBCullToClipPlanes(3)

NAME
mav_BBCullToClipPlanes - Bounding box utility functions.

LEVEL
Maverik Level 2

SYNTAX
int mav_BBCullToClipPlanes(MAV_BB bb, MAV_clipPlanes cp);

int mav_BBGetCorner(MAV_vector v);

int mav_BBIntersectsLine(MAV_BB bb, MAV_line ln, MAV_objectIntersection *oi);

int mav_BBIntersectsBB(MAV_BB bb1, MAV_BB bb2);

int mav_BBIntersectsClipPlanes(MAV_BB bb, int *clist, MAV_clipPlanes *cp);

void mav_BBAlign(MAV_BB in, MAV_matrix m, MAV_BB *out);

void mav_BBCompInit(MAV_BB *bb);

void mav_BBCompBB(MAV_BB in, MAV_BB *out);

void mav_BBCompPt(MAV_vector v, MAV_BB *bb);

DESCRIPTION

The following functions are for computing the bounding box of a composite object. initialises the bounding box bb. calculates the enclosing bounding box of two separate bounding boxes, in and out. The resulting bounding box overwrites out. calculates the enclosing bounding box of bounding box bb and point v. The resulting bounding box overwrites bb.