This method converts the corresponding degrees to radian
double degreeToRadian(int deg) => deg * (math.pi / 180);