Home > mapbox-collision-boxes > boxesIntersect
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Returns if two Box
es intersect.
Signature:
export declare function boxesIntersect(box1: Box, box2: Box): boolean;
Parameter | Type | Description |
---|---|---|
box1 | Box | Box to be tested. |
box2 | Box | Another box to be tested. |
Returns:
boolean
Whether box1
and box2
intersect.