Drawing3d documented Class Library

xyzArray.Distance(LineType, Double, Double, Double) Method

This method calculates the distance of the array to a line only in case, if the distance is smaller than MaxDist., otherwise Utils.big will be returned. Imagine a cylinder with radius MaxDist around the polygon. If the line goes through the one of the cylinders, this line will be taken and 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, _
   ByRef LineLam As Double _
public double Distance(
   LineType L,
   double MaxDist,
   out double param,
   out double LineLam


The line, which will be tested
The maximal distance, for which a reasonable result can be returned.
A value for which the nearset point in the array can be evaluated with Value
A value for which the nearset point on the line can evaluated

Return Value

In case the distance of the line is smaller than Maxdist, the distance is returned. Otherwise big

See Also

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