ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.Geometry Namespace / Coordinate2D Structure / Midpoint Method
The first coordinate
The second coordinate

In This Topic
    Midpoint Method
    In This Topic
    Constructs the midpoint of the segment connecting two instances of Coordinate2D.
    Syntax
    public static Coordinate2D Midpoint( 
       Coordinate2D coord1,
       Coordinate2D coord2
    )
    Public Shared Function Midpoint( _
       ByVal coord1 As Coordinate2D, _
       ByVal coord2 As Coordinate2D _
    ) As Coordinate2D

    Parameters

    coord1
    The first coordinate
    coord2
    The second coordinate

    Return Value

    The midpoint of the segment connecting coord1 and coord2.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also