[ Maverik Level 2 functions ]


mav_linePolygonIntersection

mav_linePolygonIntersection, mav_lineInfPlaneIntersection, mav_lineAxisPlaneIntersection

Summary

Geometrical intersection functions.


Syntax

int mav_linePolygonIntersection(MAV_polygon *p, MAV_line ln, MAV_objectIntersection *oi);

int mav_lineInfPlaneIntersection(MAV_vector pt, MAV_vector norm, MAV_line ln, MAV_objectIntersection *oi);

int mav_lineAxisPlaneIntersection(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax, MAV_vector pt, MAV_vector norm, MAV_line ln, MAV_objectIntersection *oi);


Description

These are utility functions for computing intersections between lines and polygons, and lines and planes. Each function returns MAV_TRUE if an intersection was detected, otherwise MAV_FALSE.


Back to the index page.