Drawing3d documented Class Library

LineType2d.Distance(xy, Double, xy) Method

This method calculates the distance to a point Pt. The parameter Lam can be taken 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 xy, _
   ByRef Lam As Double, _
   ByRef Nearest As xy _
)
[C#]
public double Distance(
   xy Pt,
   out double Lam,
   out xy Nearest
);

Parameters

Pt
Point to calculate the distance to the LineType
Lam
Parameter to calculate the nearest point
Nearest
The point on the line which has the smallest distance to Pt

Return Value

Returns the distance from the line to the point Pt

See Also

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