ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Geometry Namespace / Coordinate2D Structure / Distance(Coordinate2D,Coordinate2D) Method
The first coordinate
The second coordinate

In This Topic
    Distance(Coordinate2D,Coordinate2D) Method
    In This Topic
    Gets the 2D distance between two instances of Coordinate2D.
    Syntax
    Public Shared Function Distance( _
       ByVal coordinate1 As Coordinate2D, _
       ByVal coordinate2 As Coordinate2D _
    ) As Double

    Parameters

    coordinate1
    The first coordinate
    coordinate2
    The second coordinate

    Return Value

    The 2D distance between coordinate1 and coordinate2.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also