Home > @esengine/ecs-framework-monorepo > Rectangle > intersects
Rectangle.intersects() method
检查是否与另一个矩形相交
Signature:
typescript
intersects(other: Rectangle): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
other | 另一个矩形 |
Returns:
boolean
是否相交