Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PointOnLineParameter(Vector3, Vector3, Vector3)

Returns the parameter for the projection of the point on the given line.
Read time 1 minuteLast updated 10 days ago

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.