Home > @jsplumbtoolkit/browser-ui > intersects
intersects() function
Calculates whether or not the two rectangles intersect.
Signature:
export declare function intersects(r1: RectangleXY, r2: RectangleXY): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
r1 | RectangleXY | First rectangle |
r2 | RectangleXY | Second rectangle |
Returns:
boolean
True if the rectangles intersect, false otherwise.