piHalf top-level constant
double
const piHalf
The numbers: ‘1’, ‘0’, and the number ‘i’ expressed as complex numbers. Fixed value of Pi divided by 2, used for constant definitions. It is necessary to use a pre-calculated value instead of math.pi / 2 because division is not a ‘const’ operation at compile time.
Implementation
/// Fixed value of Pi divided by 2, used for constant definitions.
/// It is necessary to use a pre-calculated value instead of math.pi / 2
/// because division is not a ‘const’ operation at compile time.
///
const double piHalf = 1.5707963267948966;