An NDoc Documented Class Library

LineType.Distance Method (xyz, Double, xyz)

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

public double Distance(
   xyz Pt,
   out double Lam,
   out xyz Nearest
);

Parameters

Pt
Point to calculate the distance to the LineType
Lam
Parameter to calculate the nearest point
Nearest
The point on the Line, which has the smallest distance to Pt

Return Value

Returns the distance from the line to the point Pt

See Also

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