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 _
public double Distance(
   xy Pt,
   out double Lam,
   out xy Nearest


Point to calculate the distance to the LineType
Parameter to calculate the nearest point
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