Home > @esengine/ecs-framework-monorepo > Rectangle > intersection
Rectangle.intersection() method
计算与另一个矩形的相交矩形
Signature:
typescript
intersection(other: Rectangle): Rectangle;
Parameters
Parameter | Type | Description |
---|---|---|
other | 另一个矩形 |
Returns:
相交矩形,如果不相交返回空矩形