Skip to content

格式

typescript
Rect.Overlaps(other)

所属类: Rect

描述

判断指定矩形是否与当前矩形重合。

参数

参数名类型描述
otherRect目标矩形。

返回值

类型描述
boolean是否重合。

代码示例