EllipticArcSegment

constructor(centerPoint: Point, rotationAngle: Double, semiMajorAxis: Double, minorMajorRatio: Double, startAngle: Double, centralAngle: Double, spatialReference: SpatialReference? = null)

Creates an elliptic arc based on parameters that define an ellipse and the portion of that ellipse that defines the arc. The spatial reference parameter is used if the center point parameter has a null spatial reference. If both spatial references are supplied, they must be equal.

The z-value and m-value of the center point (if present) are ignored. Use EllipticArcSegment.EllipticArcSegment to create an EllipticArcSegment with end points with z-value and/or m-value.

Since

200.1.0

Parameters

centerPoint

The center point of the embedded ellipse.

rotationAngle

The angle in radians by which the major axis of the embedded ellipse is rotated from the x-axis. A positive value corresponds to a counterclockwise rotation from the x-axis. The value is taken in the form of the modulo of 2 * PI (360 degrees). For example, an input rotation angle of 7.5 radians (430 degrees) would return a segment with a rotation angle of 1.22 radians (70 degrees).

semiMajorAxis

The length of the semi-major axis of the embedded ellipse in the units of the spatial reference.

minorMajorRatio

The ratio of the length of the semi-minor axis to the length of the semi-major axis of the embedded ellipse.

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. The value is taken in the form of the modulo of 2 * PI (360 degrees). For example, an input rotation angle of 7.5 radians (430 degrees) would return a segment with a rotation angle of 1.22 radians (70 degrees).

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. Values larger than 2 * PI (360 degrees) return a segment with a central angle of exactly 2 * PI (360 degrees), resulting in a full ellipse where the start and end points are identical.

spatialReference

A spatial reference to use for the segment if the center point parameter does not have a spatial reference set.


constructor(startPoint: Point, endPoint: Point, rotationAngle: Double, isMinor: Boolean, isCounterClockwise: Boolean, semiMajorAxis: Double, minorMajorRatio: Double, spatialReference: SpatialReference? = null)

Creates an elliptic arc segment from the given start and end points, and other parameters that define an ellipse. The z-value and m-value of the start and end points (if present) are used in the EllipticArcSegment.

To maintain the given startPoint and endPoint in the new segment, the other parameters may be adjusted if required. Such adjustments are made according to the Scalable Vector Graphics 1.1 * Specification, Appendix F.6.5. If these cannot be adjusted sufficiently, an arc represented with a straight line is returned.

Since

200.1.0

Parameters

startPoint

The start point of the segment.

endPoint

The end point of the segment.

rotationAngle

The angle in radians by which the major axis of the embedded ellipse is rotated from the x-axis. A positive value corresponds to a counterclockwise rotation from the x-axis.

isMinor

True if EllipticArcSegment.centralAngle of the segment is less than PI.

isCounterClockwise

True if the direction of the segment, from start point to end point, proceeds in a counterclockwise direction, otherwise false.

semiMajorAxis

The length of the semi-major axis of the embedded ellipse in the units of the spatial reference.

minorMajorRatio

The ratio of the length of the semi-minor axis to the length of the semi-major axis of the embedded ellipse.

spatialReference

A spatial reference to use for the segment if the points do not have spatial references set.