Function VectorMath.SegmentIntersectsBounds

SegmentIntersectsBounds (Bounds bounds, Vector3 a, Vector3 b)

Does the line segment intersect the bounding box.

Public Static
bool SegmentIntersectsBounds (

Bounds

bounds

Vector3

a

Vector3

b

)

Does the line segment intersect the bounding box.

The line is NOT treated as infinite.

Author

Slightly modified code from http://www.3dkingdoms.com/weekly/weekly.php?a=21