arcToPoint method

  1. @override
void arcToPoint(
  1. PointT arcEnd, {
  2. required RadiusT radius,
  3. required double rotation,
  4. required bool largeArc,
  5. required bool clockwise,
})
override

Add an arc. rotation in radians, as is (sorta offhandedly) documented for Flutter's Path.

Implementation

@override
void arcToPoint(PointT arcEnd,
    {required RadiusT radius,
    required double rotation,
    required bool largeArc,
    required bool clockwise}) {
  _result.write('A ');
  _result.write(radius.x);
  _result.write(' ');
  _result.write(radius.y);
  _result.write(' ');
  _result.write(rotation * 180.0 / pi);
  _result.write(' ');
  _result.write(largeArc ? '1 ' : '0 ');
  _result.write(clockwise ? '1 ' : '0 ');
  _result.write(arcEnd.x);
  _result.write(' ');
  _result.write(arcEnd.y);
  _result.write(' ');
}