24 float recip = 1.0 / twopi;
26 return deg - (std::round(deg * recip) * twopi);
30 const float twopi =
M_PI * 2.;
31 const float recip = 1.0 / twopi;
33 return rad - (std::round(rad * recip) * twopi);
57 float theta =
static_cast<float>(theta_int);
68 int theta_int =
static_cast<int>(std::round(
theta));
70 theta_int = (theta_int <= 0) ? 1 : theta_int;
78 float glob =
loc + 15. + (60. * (
sector - 1));
80 glob = (glob >= 180.) ? (glob - 360.) : glob;
92 float loc =
static_cast<float>(phi_int);
108 float loc = glob - 15. - (60. * (
sector - 1));
119 int phi_int =
static_cast<int>(std::round(
loc));
float calcPhiLocDegFromInt(int)
float calcThetaDegFromEta(float)
float calcPhiLocRadFromInt(int)
int calcThetaInt(int, float)
float calcPhiLocDegFromGlob(int, float)
float calcThetaDegFromInt(int)
int calcPhiInt(int, float)
float calcPhiGlobDegFromLoc(int, float)
float calcThetaRadFromInt(int)
float radToDeg(float rad)
float calcThetaRadFromEta(float)
float calcPhiGlobRadFromLoc(int, float)
float degToRad(float deg)
MPlex< T, D1, D2, N > atan2(const MPlex< T, D1, D2, N > &y, const MPlex< T, D1, D2, N > &x)