degreeToRadian function

double degreeToRadian(
  1. int deg
)

This method converts the corresponding degrees to radian

Implementation

double degreeToRadian(int deg) => deg * (math.pi / 180);