Skip to main content

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

ParameterTypeDescription
otherRectThe other rectangle to check for intersection with.

Returns:

boolean

Whether this rectangle intersects the provided rectangle.