|  | 
| LineSelectorDataGetClosestDistance(Point, Double, Int32) Method | 
            GetClosestDistance method calculates the closest distance of the line used to create this LineSelectorData to the specified position.
            In case 
CheckBoundingBox is true (by default) the method returns float.MaxValue when the screenPosition is outside the bounding box.
            This method also sets 
LastDistance, 
LastLinePositionIndex and 
LastClosestPositionOnLine properties.
            Before calling this method the CalculateScreenSpacePositions method must be called.
            
 Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
 Syntax
Syntaxpublic double GetClosestDistance(
	Point screenPosition,
	double maxSelectionDistance,
	out int linePositionIndex
)
Parameters
- screenPosition  Point
- 2D position that will be used to calculate the distance to this line
- maxSelectionDistance  Double
- the distance at which the line will be selected (zero if user needs to be on the line)
- linePositionIndex  Int32
- returns the index of the line segments that is closest to the specified position
Return Value
Doubledistance of this line to the specified position
 See Also
See Also