calculateTheta2 function

double calculateTheta2(
  1. double theta1
)

Implementation

double calculateTheta2(double theta1) {
  return theta1 >= 0 ? theta1 : theta1 + (2 * math.pi);
}