6 return theta * (2 * wpi::math::pi) / 360.0;
11 return theta * 360.0 / (2 * wpi::math::pi);
17 theta = fmod(theta, 2 * wpi::math::pi);
19 theta += 2 * wpi::math::pi;
27 theta = fmod(theta, 360.0);
38 if (theta > wpi::math::pi)
39 theta -= 2 * wpi::math::pi;
40 else if (theta < -1.0 * wpi::math::pi)
41 theta += 2 * wpi::math::pi;
50 for (
auto n : numbers)
53 return sum / numbers.size();
static double NegPiToPiRads(double theta)
static double RadiansToDegrees(double theta)
Convert any angle theta in radians to degrees.
static double DegreesToRadians(double theta)
Convert any angle theta in degrees to radians.
static double ZeroTo2PiRads(double theta)
static double GetAverage(vector< double > numbers)
static double ZeroTo360Degs(double theta)