Skip to content

Variable c_pi

variable c_pi simd

template <typename T, int m = 1, int d = 1>
constexpr inline subtype<T> c_pi = subtype<T>(3.1415926535897932384626433832795 * m / d)

The mathematical constant π (pi), scaled by m/d.

Template parameters
T The numeric type.
m Numerator multiplier (default is 1).
d Denominator divisor (default is 1).

Note

Examples: - c_pi<f64, 4> = 4π - c_pi<f64, 3, 4> = 3/4π

Fully qualified name: kfr::c_pi

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.