EllipseCurve constructor

  1. @override
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

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

  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;
}