degreesToRadians static method

double degreesToRadians(
  1. double degrees
)

Implementation

static double degreesToRadians(double degrees) {
  const double degrees2radians = math.pi / 180.0;
  return degrees * degrees2radians;
}