Drawing3d documented Class Library

LineType.Distance(xyz, Double, xyz) Method

This method calculates the distance to a point Pt. The parameter Lam can be used to calculate the nearest point of the LineType, which is also returned by the outvalue Nearest

[Visual Basic]
Public Overloads Sub Distance( _
   ByVal Pt As xyz, _
   ByRef Lam As Double, _
   ByRef Nearest As xyz _
)
[C#]
public double Distance(
   xyz Pt,
   out double Lam,
   out xyz Nearest
);

Parameters

Pt
Point to calculate the distance to the LineType
Lam
Parameter to calculate the nearest point
Nearest
Point on the Line, with the lowest distance to Pt

Return Value

Returns the distance from the line to the point Pt

See Also

LineType Class | Drawing3d.Math Namespace | LineType.Distance Overload List