Skip to content

Home > @esengine/ecs-framework-monorepo > Vector2 > toArray

Vector2.toArray() method

转换为数组

Signature:

typescript
toArray(): [number, number];

Returns:

[number, number]

[x, y] 数组

基于 MIT 许可证发布