Skip to content

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

Rectangle.closestPointTo() method

获取矩形上距离指定点最近的点

Signature:

typescript
closestPointTo(point: Vector2): Vector2;

Parameters

Parameter

Type

Description

point

Vector2

指定点

Returns:

Vector2

最近点

基于 MIT 许可证发布