mav_boxIntersect(3)

NAME
mav_boxIntersect - Calculate intersection of line with Maverik default object classes.

LEVEL
Maverik Level 2

SYNTAX
int mav_boxIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_compositeIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_coneIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_ctorusIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_cylinderIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_ellipseIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_facetIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_hellipseIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_hsphereIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_polygonIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_polygonGrpIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_pyramidIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_rectangleIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_rtorusIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_SMSObjIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_sphereIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_avatarIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

ARGUMENTS
Object to test for intersection. Line to test for intersection. Intersection of line and object (if any).

DESCRIPTION
This function tests for intersection beween object o and line ln. If one or more intersections are detected, the closest intersection point is returned in oi, and the result of the function is MAV_TRUE. If no intersection is detected, the result of the function is MAV_FALSE.

If this callback function is not defined for object o, the intersection function will test against the object's bounding box.