24 if ( angle <= 2.*M_PI && angle > 0 )
return angle;
27 int n =
static_cast<int>( angle/(2.*
M_PI) );
30 int n =
static_cast<int>( -(angle)/(2.*
M_PI) );
31 angle += 2.*
M_PI*(n+1);
39 if ( angle <= M_PI && angle > -
M_PI )
return angle;
42 int n =
static_cast<int>( (angle+
M_PI)/(2.*
M_PI) );
45 int n =
static_cast<int>( -(angle-
M_PI)/(2.*
M_PI) );
double Phi_0_2pi(double phi)
Return a phi angle in the interval (0,2*PI].
Namespace for new ROOT classes and functions.
double Phi_mpi_pi(double phi)
Returns phi angle in the interval (-PI,PI].
Namespace for new Math classes and functions.