Skip to content

Home > @esengine/ecs-framework-monorepo > Rectangle > intersects

Rectangle.intersects() method

检查是否与另一个矩形相交

Signature:

typescript
intersects(other: Rectangle): boolean;

Parameters

Parameter

Type

Description

other

Rectangle

另一个矩形

Returns:

boolean

是否相交

基于 MIT 许可证发布