Intersects
bool Intersects(this BoundingBoxXYZ a, BoundingBoxXYZ b)Performs an axis-aligned intersection test between two bounding boxes.
Parameters
- aBoundingBoxXYZ
The first bounding box.
- bBoundingBoxXYZ
The second bounding box.
Returns: True if the two bounding boxes intersect; otherwise false.
Example
bool clash = boxA.Intersects(boxB);