degreesToRadians static method

double degreesToRadians(
  1. double degrees
)

Convert degrees to radians.

Implementation

static double degreesToRadians(double degrees) {
  return (degrees * math.pi) / 180;
}