Static function for converting radians to degrees (Note: pi = 180 degrees)
static double toDegree(double radian) { return (radian * 180) / pi; }