src/Elements/Geometry/Vector3.cs
/// <summary>
/// Get the closest point on the line from this point.
/// </summary>
/// <param name="line">The line on which to find the closest point.</param>
/// <returns>The closest point on the line from this point.</returns>
Get the closest point on the line from this point.
Get the closest point on the line from this point .
public Vector3 ClosestPointOn(Line line)
        {
            var dir = line.Direction();
            var v = this - line.Start;
            var d = v.Dot(dir);
            return line.Start + dir * d;
        }
public Vector3 ClosestPointOn ( Line line ) { var dir = line . Direction ( ) ; var v = this - line . Start ; var d = v . Dot ( dir ) ; return line . Start + dir * d ; }
Get the closest point on the line from this point.
Get the closest point on the line from this point .
The closest point on the line from this point.
The closest point on the line from this point .
line
Line
The line on which to find the closest point.
The line on which to find the closest point .