Contains natural / math / utility constants typed as the template parameter
More...
#include <consts.h>
|
| static constexpr V | pi = static_cast<V>(3.141592653589793238462643383279502884L) |
| |
| static constexpr V | e = static_cast<V>(2.718281828459045235360287471352662498L) |
| |
| static constexpr V | tau = static_cast<V>(pi * 2) |
| |
| static constexpr V | pi_half = static_cast<V>(pi / 2) |
| |
| static constexpr V | pi_quarter = static_cast<V>(pi / 4) |
| |
| static constexpr V | four_over_pi = static_cast<V>(4 / pi) |
| |
| static constexpr V | one = static_cast<V>(1) |
| |
| static constexpr V | minus_one = static_cast<V>(-1) |
| |
| static constexpr V | minus_two = static_cast<V>(-2) |
| |
| static constexpr V | half = static_cast<V>(0.5) |
| |
| static constexpr V | quarter = static_cast<V>(0.25) |
| |
| static constexpr V | two = static_cast<V>(2) |
| |
| static constexpr V | four = static_cast<V>(4) |
| |
| static constexpr V | sqrt_two = static_cast<V>(1.4142135623730950488016887242097L) |
| |
| static constexpr V | sqrt_half_two = static_cast<V>(0.70710678118654752440084436210485L) |
| |
| static constexpr V | sign_bit = static_cast<V>(-0.0) |
| |
| static constexpr V | epsilon = std::numeric_limits<V>::epsilon() |
| |
| static constexpr V | max = std::numeric_limits<V>::max() |
| |
| static constexpr V | min = std::numeric_limits<V>::min() |
| |
| static constexpr V | zero = static_cast<V>(0) |
| |
template<typename V = double>
struct ape::consts< V >
Contains natural / math / utility constants typed as the template parameter
template<typename V = double>
| constexpr V ape::consts< V >::e = static_cast<V>(2.718281828459045235360287471352662498L) |
|
staticconstexpr |
◆ epsilon
template<typename V = double>
| constexpr V ape::consts< V >::epsilon = std::numeric_limits<V>::epsilon() |
|
staticconstexpr |
◆ four
template<typename V = double>
◆ four_over_pi
template<typename V = double>
| constexpr V ape::consts< V >::four_over_pi = static_cast<V>(4 / pi) |
|
staticconstexpr |
◆ half
template<typename V = double>
| constexpr V ape::consts< V >::half = static_cast<V>(0.5) |
|
staticconstexpr |
◆ max
template<typename V = double>
| constexpr V ape::consts< V >::max = std::numeric_limits<V>::max() |
|
staticconstexpr |
◆ min
template<typename V = double>
| constexpr V ape::consts< V >::min = std::numeric_limits<V>::min() |
|
staticconstexpr |
◆ minus_one
template<typename V = double>
| constexpr V ape::consts< V >::minus_one = static_cast<V>(-1) |
|
staticconstexpr |
◆ minus_two
template<typename V = double>
| constexpr V ape::consts< V >::minus_two = static_cast<V>(-2) |
|
staticconstexpr |
◆ one
template<typename V = double>
◆ pi
template<typename V = double>
| constexpr V ape::consts< V >::pi = static_cast<V>(3.141592653589793238462643383279502884L) |
|
staticconstexpr |
◆ pi_half
template<typename V = double>
◆ pi_quarter
template<typename V = double>
| constexpr V ape::consts< V >::pi_quarter = static_cast<V>(pi / 4) |
|
staticconstexpr |
◆ quarter
template<typename V = double>
| constexpr V ape::consts< V >::quarter = static_cast<V>(0.25) |
|
staticconstexpr |
◆ sign_bit
template<typename V = double>
| constexpr V ape::consts< V >::sign_bit = static_cast<V>(-0.0) |
|
staticconstexpr |
◆ sqrt_half_two
template<typename V = double>
| constexpr V ape::consts< V >::sqrt_half_two = static_cast<V>(0.70710678118654752440084436210485L) |
|
staticconstexpr |
◆ sqrt_two
template<typename V = double>
| constexpr V ape::consts< V >::sqrt_two = static_cast<V>(1.4142135623730950488016887242097L) |
|
staticconstexpr |
◆ tau
template<typename V = double>
◆ two
template<typename V = double>
◆ zero
template<typename V = double>
The documentation for this struct was generated from the following file:
- C:/Code/ape/make/skeleton/includes/consts.h