MapPoint QueryPointAndDistance( Segment segment, SegmentExtensionType extensionType, MapPoint inPoint, AsRatioOrLength asRatioOrLength, out double distanceAlongCurve, out double distanceFromCurve, out LeftOrRightSide whichSide )
Overloads Function QueryPointAndDistance( _ ByVal segment As Segment, _ ByVal extensionType As SegmentExtensionType, _ ByVal inPoint As MapPoint, _ ByVal asRatioOrLength As AsRatioOrLength, _ ByRef distanceAlongCurve As Double, _ ByRef distanceFromCurve As Double, _ ByRef whichSide As LeftOrRightSide _ ) As MapPoint
Parameters
- segment
- The curve on which to find the closest point. The curve may be extended.
- extensionType
- Describes if, how and where to extend segments.
- inPoint
- The input point.
- asRatioOrLength
- Determines whether the distanceAlongCurve is returned as a ratio of the curve length or as length from the start point.
- distanceAlongCurve
- Describes the distance from the start point of the segment to the input point, either as a ratio or length. If the input point is not on the segment, then the nearest location on the segment from the point is used.
- distanceFromCurve
- Describes how far the point is from the curve.
- whichSide
- Describes if the point is on the left or right side of the curve. The direction of the curve determines its left and right sides. If the point is on the curve, then LeftSide is returned.
Return Value
MapPoint representing the closest point on the curve.