Click or drag to resize
AB4D logo

LineSelectorDataGetClosestDistance Method

Overload List
 NameDescription
Public methodGetClosestDistance(Point) GetClosestDistance method calculates the closest distance of the line used to create this LineSelectorData to the specified position. This method also sets LastDistance, LastLinePositionIndex, LastClosestPositionOnLine and LastDistanceFromCamera properties. Before calling this method the CalculateScreenSpacePositions method must be called. This method must not be called when CheckBoundingBox is true. In this case use the method that also takes maxSelectionDistance as parameter.
Public methodGetClosestDistance(Point, Double) GetClosestDistance method calculates the closest distance of the line used to create this LineSelectorData to the specified position. In case CheckBoundingBox is true the method returns float.MaxValue when the screenPosition is outside the bounding box. This method also sets LastDistance, LastLinePositionIndex, LastClosestPositionOnLine and LastDistanceFromCamera properties. Before calling this method the CalculateScreenSpacePositions method must be called.
Public methodGetClosestDistance(Point, Int32) GetClosestDistance method calculates the closest distance of the line used to create this LineSelectorData to the specified position. This method also sets LastDistance, LastLinePositionIndex and LastClosestPositionOnLine properties. Before calling this method the CalculateScreenSpacePositions method must be called. This method must not be called when CheckBoundingBox is true. In this case use the method that also takes maxSelectionDistance as parameter.
Public methodGetClosestDistance(Point, Double, Int32) 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.
Top
See Also