Skip to content

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

Rectangle.intersectionArea() method

计算相交面积

Signature:

typescript
intersectionArea(other: Rectangle): number;

Parameters

Parameter

Type

Description

other

Rectangle

另一个矩形

Returns:

number

相交面积

基于 MIT 许可证发布