Function VectorMath.ClosestPointOnLine

ClosestPointOnLine (Vector3 lineStart, Vector3 lineEnd, Vector3 point)

Returns the closest point on the line.

Public Static
Vector3 ClosestPointOnLine (

Vector3

lineStart

Vector3

lineEnd

Vector3

point

)

Returns the closest point on the line.

The line is treated as infinite.