pointAt method

Point pointAt(
  1. double t
)

Get a point on the arc at parameter t (0 = start, 1 = end)

Implementation

Point pointAt(double t) {
  final angle = startAngle + sweepAngle * t;
  return Point(
    center.x + radius * cos(angle),
    center.y + radius * sin(angle),
  );
}