Home > blockly > utils > Rect > intersects
utils.Rect.intersects() method
Tests whether this rectangle intersects the provided rectangle. Assumes that the coordinate system increases going down and left.
Signature:
intersects(other: Rect): boolean;
Parameters
| Parameter | Type | Description |
|---|---|---|
| other | Rect | The other rectangle to check for intersection with. |
Returns:
boolean
Whether this rectangle intersects the provided rectangle.