기술 자료

Unity Engine

Unity Engine

ClosestPoint(Vector2)

Calculate the closest point on this geometry to the specified point.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public readonly Vector2 ClosestPoint(Vector2 point)

Parameters

point

The point to check.

Returns

Type

Description

Vector2The closest point on the geometry to the specified point.