ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.Geometry Namespace / EllipticArcBuilderEx Class / CreateCircularArc Method / CreateCircularArc(MapPoint,MapPoint,Coordinate2D,SpatialReference) Method
The point from which the arc starts.
The point to which the arc ends.
An interior point on the arc.
(Optional) The spatial reference. The default value is null. The spatial references of the start and end points are ignored.
Example

In This Topic
    CreateCircularArc(MapPoint,MapPoint,Coordinate2D,SpatialReference) Method
    In This Topic
    Convenience method to create a new instance of the EllipticArcSegment class. The segment will be a circular arc built from three points.
    Syntax
    Public Overloads Shared Function CreateCircularArc( _
       ByVal startPt As MapPoint, _
       ByVal endPt As MapPoint, _
       ByVal interiorPt As Coordinate2D, _
       Optional ByVal spatialReference As SpatialReference _
    ) As EllipticArcSegment

    Parameters

    startPt
    The point from which the arc starts.
    endPt
    The point to which the arc ends.
    interiorPt
    An interior point on the arc.
    spatialReference
    (Optional) The spatial reference. The default value is null. The spatial references of the start and end points are ignored.

    Return Value

    Exceptions
    ExceptionDescription
    startPt or endPt is null or empty.
    Remarks
    If the start and end points are equal, the elliptic arc will degenerate to a point. To create a circle, use CreateCircle
    Example
    Construct a Circular Arc - using an interior point
    // Construct a circular arc from (2, 1) to (1, 2) with interior pt (1 + sqrt(2)/2, 1 + sqrt(2)/2).
    // Use a builderEx convenience method or use a builderEx constructor.
    
    MapPoint fromPt = MapPointBuilderEx.CreateMapPoint(2, 1);
    MapPoint toPt = MapPointBuilderEx.CreateMapPoint(1, 2);
    Coordinate2D interiorPt = new Coordinate2D(1 + Math.Sqrt(2) / 2, 1 + Math.Sqrt(2) / 2);
    
    // BuilderEx convenience methods don't need to run on the MCT.
    EllipticArcSegment circularArc = EllipticArcBuilderEx.CreateCircularArc(fromPt, toPt, interiorPt);
    
    // BuilderEx constructors don't need to run on the MCT.
    EllipticArcBuilderEx eab = new EllipticArcBuilderEx(fromPt, toPt, interiorPt);
    // do something with the builder
    
    EllipticArcSegment anotherCircularArc = eab.ToSegment();
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also