Skip to content

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

Rectangle.union() method

计算与另一个矩形的并集矩形

Signature:

typescript
union(other: Rectangle): Rectangle;

Parameters

Parameter

Type

Description

other

Rectangle

另一个矩形

Returns:

Rectangle

并集矩形

基于 MIT 许可证发布