ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.Geometry Namespace / EllipticArcSegment Class / CentralAngle Property
Example

In This Topic
    CentralAngle Property (EllipticArcSegment)
    In This Topic
    Gets the central angle in radians.
    Syntax
    public double CentralAngle {get;}
    Public ReadOnly Property CentralAngle As Double

    Property Value

    A double representing the central angle.
    Remarks
    The central angle is the angular measure between the StartAngle and the EndAngle. It is measured in radians and is always between -2 * PI and 2 * PI. If the elliptic arc is oriented in a counterclockwise direction, then the central angle > 0. Otherwise, the central angle < 0.
    Example
    Elliptic Arc Properties
    // retrieve the curve's control points
    EllipticArcSegment arc = EllipticArcBuilderEx.CreateEllipticArcSegment(arcSegment);
    MapPoint startPt = arc.StartPoint;
    MapPoint endPt = arc.EndPoint;
    Coordinate2D centerPt = arc.CenterPoint;
    bool isCircular = arc.IsCircular;
    bool isMinor = arc.IsMinor;
    bool isCounterClockwise = arc.IsCounterClockwise;
    bool isCurve = arc.IsCurve;
    double len = arc.Length;
    double ratio = arc.MinorMajorRatio;
    
    double semiMajorAxis, semiMinorAxis;
    // get the axes
    arc.GetAxes(out semiMajorAxis, out semiMinorAxis);
    // or use the properties
    // semiMajorAxis = arc.SemiMajorAxis;
    // semiMinorAxis = arc.SemiMinorAxis;
    
    double startAngle, centralAngle, rotationAngle;
    // or use QueryCoords to get complete information
    arc.QueryCoords(out centerPt, out startAngle, out centralAngle, out rotationAngle, out semiMajorAxis, out semiMinorAxis);
    
    // use properties to get angle information
    //double endAngle = arc.EndAngle;
    //centralAngle = arc.CentralAngle;
    //rotationAngle = arc.RotationAngle;
    //startAngle = arc.StartAngle;
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also