This method calculates the distance to a point Pt . The difference to Distance is: If the normalprojection from the Point Pt is outside of PQ then the distance to the Point P resp Q is taken and Lam is 0 resp 1. The parameter Lam can be taken to calculate the nearest point of the LineType, which is also returned by the outvalue Nearest

[Visual Basic] Public Sub DistanceBounded( _ ByVal Pt As xy, _ ByRef Lam As Double _ )

[C#] public double DistanceBounded( xyPt, out doubleLam );

Parameters

Pt

Point to calculate the distance to the LineType

Lam

Parameter to calculate the nearest point

Return Value

Returns the distance from the line to the point Pt