Home > @jsplumb/util > intersects
#
intersects() functionCalculates whether or not the two rectangles intersect.
Signature:
export declare function intersects(r1: RectangleXY, r2: RectangleXY): boolean;
#
ParametersParameter | Type | Description |
---|---|---|
r1 | RectangleXY | First rectangle |
r2 | RectangleXY | Second rectangle |
Returns:
boolean
True if the rectangles intersect, false otherwise.