EllipseCurve constructor

EllipseCurve(
  1. dynamic aX,
  2. dynamic aY,
  3. dynamic xRadius,
  4. dynamic yRadius, [
  5. dynamic aStartAngle,
  6. dynamic aEndAngle,
  7. dynamic aClockwise,
  8. dynamic aRotation,
])

Implementation

EllipseCurve(
    aX, aY, xRadius, yRadius, [aStartAngle, aEndAngle, aClockwise, aRotation]) {
  type = 'EllipseCurve';

  this.aX = aX ?? 0;
  this.aY = aY ?? 0;

  this.xRadius = xRadius ?? 1;
  this.yRadius = yRadius ?? 1;

  this.aStartAngle = aStartAngle ?? 0;
  this.aEndAngle = aEndAngle ?? 2 * Math.PI;

  this.aClockwise = aClockwise ?? false;

  this.aRotation = aRotation ?? 0;
}