CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
normalizedPhi.cc
Go to the documentation of this file.
2 #include <cmath>
3 
4 namespace reco {
5  double normalizedPhi(double phi) {
6  static double const TWO_PI = M_PI * 2;
7  while ( phi < -M_PI ) phi += TWO_PI;
8  while ( phi > M_PI ) phi -= TWO_PI;
9  return phi;
10  }
11 }
double normalizedPhi(double phi)
Definition: normalizedPhi.cc:5
#define M_PI
Definition: BFit3D.cc:3
Definition: DDAxes.h:10