createCircularEllipticArc

fun createCircularEllipticArc(centerPoint: Point, radius: Double, startAngle: Double, centralAngle: Double, spatialReference: SpatialReference? = null): EllipticArcSegment

Creates an EllipticArcSegment that is a partial circle shape from the center point and radius of the embedded circle, and the start and central angle around that circle. The z-value and m-value of the center point (if present) are ignored. Use EllipticArcSegment.createCircularEllipticArc to create a circular EllipticArcSegment with end points with z-value and/or m-value.

Return

A new EllipticArcSegment with the given center point, radius, start and central angles, and spatial reference, where EllipticArcSegment.isCircular is true.

Since

200.1.0

Parameters

centerPoint

The center point of the embedded circle.

radius

The distance from the center of the embedded circle to its perimeter.

startAngle

The parametric angle in radians of the start of the arc relative to the major axis of the embedded ellipse. A positive value corresponds to a counterclockwise rotation from the major axis.

centralAngle

The parametric angle in radians measuring the span of the arc from EllipticArcSegment.startAngle to EllipticArcSegment.endAngle. A positive value corresponds to a counterclockwise arc sweep.

spatialReference

The spatial reference of the new segment.

Throws

if there is a mismatch between the SpatialReferences of the Point and the supplied parameter.


fun createCircularEllipticArc(startPoint: Point, endPoint: Point, interiorPoint: Point, spatialReference: SpatialReference? = null): EllipticArcSegment

Creates an EllipticArcSegment from start, end, and interior points that is a partial circle shape. The z-value and m-value of the start and end points (if present) are used in the circular EllipticArcSegment. The z-value and m-value of the interior point (if present) are ignored.

Return

A new EllipticArcSegment with the given start, through and end point, and spatial reference, where EllipticArcSegment.isCircular is true.

Since

200.1.0

Parameters

startPoint

The start point of the segment.

endPoint

The end point of the segment.

interiorPoint

A point along the circular arc, between the start and end points.

spatialReference

The spatial reference of the new segment.

Throws

if there is a mismatch between the SpatialReferences of the Points or the supplied parameter.