toDegree static method

double toDegree(
  1. double radian
)

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

Implementation

static double toDegree(double radian) {
  return (radian * 180) / pi;
}