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);
39 float theta = std::atan2(1.0, std::sinh(
eta));
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);
94 loc = (loc / 60.) - 22.;
108 float loc = glob - 15. - (60. * (
sector - 1));
116 loc = ((loc + 22.) < 0.) ? (loc + 360.) : loc;
117 loc = (loc + 22.) * 60.;
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)
Geom::Theta< T > theta() const
float degToRad(float deg)