Skip to content

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

Rectangle.fromPointArray() method

从点数组创建包围矩形

Signature:

typescript
static fromPointArray(points: Vector2[]): Rectangle;

Parameters

Parameter

Type

Description

points

Vector2[]

点数组

Returns:

Rectangle

包围矩形

基于 MIT 许可证发布