ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Geometry Namespace / EllipticArcBuilderEx Class / CreateEllipticArcSegment Method / CreateEllipticArcSegment(Coordinate2D,Double,Double,Double,Double,Double,SpatialReference) Method
The center point of the ellipse.
The start angle in radians measured from the rotated X-axis.
The central angle in radians measuring the span of the arc from startAngle to endAngle. A positive value corresponds to counterclockwise orientation.
The angle in radians by which the ellipse is rotated from the X-axis. A positive value corresponds to counterclockwise rotation.
The length of the semi-major axis.
The ratio of the length of the semi-minor axis to the length of the semi-major axis. The absolute value must be <= 1.
(Optional) The spatial reference of the arc. The default value is null.
Example

In This Topic
    CreateEllipticArcSegment(Coordinate2D,Double,Double,Double,Double,Double,SpatialReference) Method
    In This Topic
    Convenience method to create a new instance of the EllipticArcSegment class. The new instance will be an elliptic arc.
    Syntax
    Public Overloads Shared Function CreateEllipticArcSegment( _
       ByVal centerPt As Coordinate2D, _
       ByVal startAngle As Double, _
       ByVal centralAngle As Double, _
       ByVal rotationAngle As Double, _
       ByVal semiMajorAxis As Double, _
       ByVal minorMajorRatio As Double, _
       Optional ByVal spatialReference As SpatialReference _
    ) As EllipticArcSegment

    Parameters

    centerPt
    The center point of the ellipse.
    startAngle
    The start angle in radians measured from the rotated X-axis.
    centralAngle
    The central angle in radians measuring the span of the arc from startAngle to endAngle. A positive value corresponds to counterclockwise orientation.
    rotationAngle
    The angle in radians by which the ellipse is rotated from the X-axis. A positive value corresponds to counterclockwise rotation.
    semiMajorAxis
    The length of the semi-major axis.
    minorMajorRatio
    The ratio of the length of the semi-minor axis to the length of the semi-major axis. The absolute value must be <= 1.
    spatialReference
    (Optional) The spatial reference of the arc. The default value is null.

    Return Value

    Exceptions
    ExceptionDescription
    startAngle, centralAngle, rotationAngle, semiMajorAxis or minorMajorRatio is NaN.
    An elliptic arc construction operation was given invalid axes. The absolute value of minorMajorRatio is > 1.
    centerPt is empty.
    Example
    Construct an Elliptic Arc - using a center point and rotation angle
    // Construct an elliptic arc centered at (1,1), startAngle = 0, centralAngle = PI/2, 
    // rotationAngle = 0, semiMajorAxis = 1, minorMajorRatio = 0.5.
    // Use a builderEx convenience method or use a builderEx constructor.
    
    Coordinate2D centerPt = new Coordinate2D(1, 1);
    
    // BuilderEx convenience methods don't need to run on the MCT.
    EllipticArcSegment circularArc = EllipticArcBuilderEx.CreateEllipticArcSegment(centerPt, 0, Math.PI / 2, 0, 1, 0.5);
    
    double semiMajor;
    double semiMinor;
    circularArc.GetAxes(out semiMajor, out semiMinor);
    // semiMajor = 1, semiMinor = 0.5
    
    // BuilderEx constructors dont need to run on the MCT.
    EllipticArcBuilderEx cab = new EllipticArcBuilderEx(centerPt, 0, Math.PI / 2, 0, 1, 0.5);
    cab.GetAxes(out semiMajor, out semiMinor);
    EllipticArcSegment otherCircularArc = cab.ToSegment();
    
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also