CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
normalizedPhi.h File Reference

Go to the source code of this file.

Functions

double normalizedPhi (double phi)
 

Function Documentation

double normalizedPhi ( double  phi)

Definition at line 5 of file normalizedPhi.cc.

References M_PI, and phi().

5  {
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  }
#define M_PI
Geom::Phi< T > phi() const