Home > @esengine/ecs-framework-monorepo > Rectangle > fromPointArray
Rectangle.fromPointArray() method
从点数组创建包围矩形
Signature:
typescript
static fromPointArray(points: Vector2[]): Rectangle;
Parameters
Parameter | Type | Description |
---|---|---|
points | Vector2[] | 点数组 |
Returns:
包围矩形