circleAt method

Offset circleAt(
  1. double width,
  2. double height,
  3. double radius,
  4. double angle,
)

Implementation

Offset circleAt(double width, double height, double radius, double angle) {
  final x = (width / 2 + radius * (cos(angle)));
  final y = (height / 2 + radius * (sin(angle)));
  return Offset(x, y);
}