|
| template<floating_point Type> |
| constexpr auto | sbx::math::epsilon_v = std::numeric_limits<Type>::epsilon() |
| | Machine epsilon for a floating-point type. More...
|
| |
|
constexpr auto | sbx::math::epsilonf = epsilon_v<std::float_t> |
| | Machine epsilon for std::float_t.
|
| |
|
constexpr auto | sbx::math::epsilond = epsilon_v<std::double_t> |
| | Machine epsilon for std::double_t.
|
| |
| constexpr auto | sbx::math::epsilon = epsilonf |
| | Default machine epsilon. More...
|
| |
| template<floating_point Type> |
| constexpr auto | sbx::math::pi_v = std::numbers::pi_v<Type> |
| | Pi constant for a floating-point type. More...
|
| |
|
constexpr auto | sbx::math::pif = pi_v<std::float_t> |
| | Pi constant for std::float_t.
|
| |
|
constexpr auto | sbx::math::pid = pi_v<std::double_t> |
| | Pi constant for std::double_t.
|
| |
| constexpr auto | sbx::math::pi = pif |
| | Default pi constant. More...
|
| |
| template<floating_point Type> |
| constexpr auto | sbx::math::two_pi_v = static_cast<Type>(2) * pi_v<Type> |
| | Two-pi constant for a floating-point type. More...
|
| |
|
constexpr auto | sbx::math::two_pif = two_pi_v<std::float_t> |
| | Two-pi constant for std::float_t.
|
| |
|
constexpr auto | sbx::math::two_pid = two_pi_v<std::double_t> |
| | Two-pi constant for std::double_t.
|
| |
| constexpr auto | sbx::math::two_pi = two_pif |
| | Default two-pi constant. More...
|
| |
Mathematical constants.
This header defines commonly used mathematical constants in a type-safe, constexpr-friendly manner. Constants are provided as variable templates parameterized on floating-point type, along with convenient aliases for commonly used precisions.
All constants are intended to be used consistently across the math module to avoid magic numbers and precision mismatches.
- Author
- KAJ
- Copyright
- (C) 2026 Jonas Kabelitz