ドキュメント

Unity Engine

Unity Engine

PointOnLineParameter(Vector3, Vector3, Vector3)

Returns the parameter for the projection of the point on the given line.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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.