namespace: CurveArchitect.Utilites
file: HelperLine.cs
General
Vector3 CloestPointOnLineFromLine(Vector3 line1Point, Vector3 line1Direction, Vector3 line2Point, Vector3 line2Direction, float maxLength = 0, bool noBackwards = false)
Vector3 CloestPointOnLineFromLine(Vector3 line1Point, Vector3 line1Direction, Vector3 line2Point, Vector3 line2Direction, out float time)
Description:
Calculates the closest point on one line from another line.
Returns:
The closest point on the first line to the second line.
Vector3 ClosestPoint(Vector3 startPoint, Vector3 direction, Vector3 point, out float time)
Description:
Finds the closest point on a line to a given point.
Returns:
The closest point on the line.