12 #ifndef ECL_MATH_CONSTANTS_HPP_ 13 #define ECL_MATH_CONSTANTS_HPP_ 27 #ifdef M_PI // defined by all POSIX systems and some non-POSIX ones 28 double const pi = M_PI;
30 const double pi_2 = pi/2.0;
31 const double pi_4 = pi/4.0;
37 double const pi = 4.0*std::atan(1.0);
38 const double two_pi = 2.0*
pi;
39 const double pi_2 = pi/2.0;
40 const double pi_4 = pi/4.0;
42 const float pi_f =
pi;
Embedded control libraries.
double const pi
Mathematical constant for pi.
const double two_pi
Mathematical constant for 2*pi.
const float pi_2_f
Mathematical constant (float format) for pi/2.
const float pi_4_f
Mathematical constant (float format) for pi/4.
const float pi_f
Mathematical constant (float format) for pi.
const double pi_4
Mathematical constant for pi/4.
const float two_pi_f
Mathematical constant (float format) for 2*pi.
const double pi_2
Mathematical constant for pi/2.