Skip to content

format

typescript
Rect.Overlaps(other)

class: Rect

description

Determines whether the specified rectangle overlaps with the current rectangle.

parameter

param_nametypedescription
otherRectThe target rectangle.

reture

typedescription
booleanTrue if the rectangles overlap; otherwise, false.

code example