Drawing3d documented Class Library

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

This method calculates the distance to a Line L The parameter Lam1 can be taken to calculate the point, which has the lowest distance to the other Line L . Nearest1 = Value(Lam1). The parameter Lam2 can be taken to calculate the point of L , which has the lowest distance to the Linetype this. Nearest2 = L.Value(Lam2).

[Visual Basic]
Public Overloads Sub Distance( _
   ByVal L As LineType, _
   ByRef Lam1 As Double, _
   ByRef Lam2 As Double, _
   ByRef Nearest1 As xyz, _
   ByRef Nearest2 As xyz _
)
[C#]
public double Distance(
   LineType L,
   out double Lam1,
   out double Lam2,
   out xyz Nearest1,
   out xyz Nearest2
);

Parameters

L
The other LineType
Lam1
Paramter which belongs to Nearest1 : Nearest1 = Value(Lam1)
Lam2
Paramter which belongs to Nearest2 : Nearest2 = L.Value(Lam2)
Nearest1
The point on the Line, which has the smallest distance to the Line L
Nearest2
The point on the Line L, which has the smallest distance to the LineType this

Return Value

Returns the distance to the line L

See Also

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