ArcGIS Pro 2.7 API Reference Guide
QueryPointAndDistance3D(Segment,SegmentExtension,MapPoint,AsRatioOrLength,Double,Double) Method

ArcGIS.Core.Geometry Namespace > GeometryEngine Class > QueryPointAndDistance3D Method : QueryPointAndDistance3D(Segment,SegmentExtension,MapPoint,AsRatioOrLength,Double,Double) Method
The segment on which to find the closest point. The segment may be extended.
Describes if, how and where to extend segments.
The input point.
Determines whether the distanceAlongCurve is returned as a ratio of the curve length or as length from the start point.
Describes how far along the closest point is along the curve, either as a ratio or length.
Describes how far the point is from the curve.
Finds the point on the curve closest to inPoint, then copies that point to outPoint. The operation is performed in 3D space. Also calculates related items.
Syntax
Public Overloads Function QueryPointAndDistance3D( _
   ByVal segment As Segment, _
   ByVal extension As SegmentExtension, _
   ByVal inPoint As MapPoint, _
   ByVal asRatioOrLength As AsRatioOrLength, _
   ByRef distanceAlongCurve As Double, _
   ByRef distanceFromCurve As Double _
) As MapPoint

Parameters

segment
The segment on which to find the closest point. The segment may be extended.
extension
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 how far along the closest point is along the curve, either as a ratio or length.
distanceFromCurve
Describes how far the point is from the curve.

Return Value

MapPoint representing the closest point on the curve.
Exceptions
ExceptionDescription
Either segment or inPoint or both are null or empty.
segment is not Z-Aware.
Cannot do 3D operations on curve segments.
Spatial reference of segmentis an image coordinate system.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

GeometryEngine Class
GeometryEngine Members
Overload List