기술 자료

Unity Engine

Unity Engine

PointOnLineParameter(Vector3, Vector3, Vector3)

Returns the parameter for the projection of the point on the given line.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static float PointOnLineParameter(Vector3 point, Vector3 linePoint, Vector3 lineDirection)

Parameters

point


linePoint


lineDirection

Returns

Type

Description

float

Remarks

The return value can be negative if the projected point is in negative lineDirection relative to the linePoint Additional Resources: HandleUtility.ProjectPointLine.