blockly > utils > Rect > intersects

utils.Rect.intersects() 方法

用于测试该矩形是否与所提供的矩形相交。假设坐标系按向下和向左增加。

Signature:

intersects(other: Rect): boolean;

参数

参数 类型 说明
其他 矩形 要检查与其相交的另一个矩形。

返回

boolean

该矩形是否与所提供的矩形相交。