An NDoc Documented Class Library

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

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

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 | Minais.Drawing3d.Math Namespace | LineType.Distance Overload List