degreeToCoordinate function

({double x, double y}) degreeToCoordinate(
  1. double degree
)

Implementation

({double x, double y}) degreeToCoordinate(
  double degree,
) =>
    (x: cos(dgreeToRadian(degree)), y: sin(dgreeToRadian(degree)));