relativeArcToPoint method

void relativeArcToPoint (Offset arcEndDelta, { Radius radius: Radius.zero, double rotation: 0.0, bool largeArc: false, bool clockwise: true })

Appends up to four conic curves weighted to describe an oval of radius and rotated by rotation.

The last path point is described by (px, py).

The first curve begins from the last point in the path and the last ends at arcEndDelta.dx + px and arcEndDelta.dy + py. The curves follow a path in a direction determined by clockwise and largeArc in such a way that the sweep angle is always less than 360 degrees.

A simple line is appended if either either radii are zero, or, both arcEndDelta.dx and arcEndDelta.dy are zero. The radii are scaled to fit the last path point if both are greater than zero but too small to describe an arc.

Implementation

void relativeArcToPoint(Offset arcEndDelta, {
  Radius radius: Radius.zero,
  double rotation: 0.0,
  bool largeArc: false,
  bool clockwise: true,
  }) {
  assert(_offsetIsValid(arcEndDelta));
  assert(_radiusIsValid(radius));
  _relativeArcToPoint(arcEndDelta.dx, arcEndDelta.dy, radius.x, radius.y,
                      rotation, largeArc, clockwise);
}