arc method

Path arc(
  1. double aX,
  2. double aY,
  3. double aRadius,
  4. double aStartAngle,
  5. double aEndAngle, [
  6. bool? aClockwise,
])

aX, aY -- The center of the arc offset from the last call.

aRadius -- The radius of the arc.

aStartAngle -- The start angle in radians.

aEndAngle -- The end angle in radians.

aClockwise -- Sweep the arc clockwise. Defaults to false.

Adds an EllipseCurve to the path, positioned relative to page:.currentPoint.

Implementation

Path arc(double aX, double aY, double aRadius, double aStartAngle, double aEndAngle, [bool? aClockwise]) {
  final x0 = currentPoint.x;
  final y0 = currentPoint.y;

  absarc(aX + x0, aY + y0, aRadius, aStartAngle, aEndAngle, aClockwise);

  return this;
}