Skip to content

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

Rectangle.getVertices() method

获取四个顶点

Signature:

typescript
getVertices(): Vector2[];

Returns:

Vector2[]

顶点数组 [topLeft, topRight, bottomRight, bottomLeft]

基于 MIT 许可证发布