Drawing3d documented Class Library

Curve.Distance(LineType, Double, Double) Method

This method calculates the distance of a LineType to a Curve only in case, when the distance is smaller then MaxDist, otherwise big will be returned. You can imagine a cylinders with radius MaxDist around the Curve. If the line goes through the "curved" cylinder, then the distance will be calculated and returned.

[Visual Basic]
Public Overloads Sub Distance( _
   ByVal L As LineType, _
   ByVal MaxDist As Double, _
   ByRef param As Double _
)
[C#]
public double Distance(
   LineType L,
   double MaxDist,
   out double param
);

Parameters

L
Line, which will be checked
MaxDist
Maximal distance
param
paramter fo the nearest point in the curve

Return Value

distance

See Also

Curve Class | Drawing3d.Curves Namespace | Curve.Distance Overload List