封鎖 >utils >矩形 >交集

utils.Rect.intersects() 方法

測試這個矩形是否與提供的矩形相交。假設座標系統由下、左持續增加。

Signature:

intersects(other: Rect): boolean;

參數

參數 類型 說明
其他 矩形 要檢查交叉路口的其他矩形。

傳回:

布林值

這個矩形是否與提供的矩形交會。