pointAtAngle method

Point pointAtAngle(
  1. double radius,
  2. double angle
)

generates a point at a specified angle and distance from a center point

Implementation

Point pointAtAngle(double radius, double angle) {
  double x = this.x + radius * cos(angle);
  double y = this.y + radius * sin(angle);
  return Point(x, y);
}