Drawing3d documented Class Library

LineType.Distance Method

This method calculates the distance to an other line only if the distance is smaller than MaxDist, otherwise Utils.big will be returned. Imagine a cylinder with radius MaxDist around the line. If now a line passes the cylinder, a reasonable result for the lenght of the distance will be returned. If CheckP is true, additional to the Cylinder a halfsphere with center P and radius Maxdist is considered and analogusly for CheckQ.

Overload List

This method calculates the distance to an other line only if the distance is smaller than MaxDist, otherwise Utils.big will be returned. Imagine a cylinder with radius MaxDist around the line. If now a line passes the cylinder, a reasonable result for the lenght of the distance will be returned. If CheckP is true, additional to the Cylinder a halfsphere with center P and radius Maxdist is considered and analogusly for CheckQ.

public double Distance(LineType,double,bool,bool,out double)

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).

public double Distance(LineType,out double,out double,out xyz,out xyz)

This method calculates the distance to a point Pt. The parameter Lam can be used to calculate the nearest point of the LineType, which is also returned by the outvalue Nearest

public double Distance(xyz,out double,out xyz)

See Also

LineType Class | Drawing3d.Math Namespace