toRadian static method

double toRadian(
  1. double degree
)

Static function for converting degress to radians (Note: pi = 180 degrees)

Implementation

static double toRadian(double degree) {
  return (degree * pi) / 180;
}