Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 879 Bytes

mapbox-collision-boxes.boxesintersect.md

File metadata and controls

30 lines (18 loc) · 879 Bytes

Home > mapbox-collision-boxes > boxesIntersect

boxesIntersect() function

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 Boxes intersect.

Signature:

export declare function boxesIntersect(box1: Box, box2: Box): boolean;

Parameters

Parameter Type Description
box1 Box Box to be tested.
box2 Box Another box to be tested.

Returns:

boolean

Whether box1 and box2 intersect.