ape  0.5.0
Audio Programming Environment
Static Public Attributes | List of all members
ape::consts< V > Struct Template Reference

Contains natural / math / utility constants typed as the template parameter More...

#include <consts.h>

Static Public Attributes

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)
 

Detailed Description

template<typename V = double>
struct ape::consts< V >

Contains natural / math / utility constants typed as the template parameter

Member Data Documentation

◆ e

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>
constexpr V ape::consts< V >::four = static_cast<V>(4)
staticconstexpr

◆ 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>
constexpr V ape::consts< V >::one = static_cast<V>(1)
staticconstexpr

◆ pi

template<typename V = double>
constexpr V ape::consts< V >::pi = static_cast<V>(3.141592653589793238462643383279502884L)
staticconstexpr

◆ pi_half

template<typename V = double>
constexpr V ape::consts< V >::pi_half = static_cast<V>(pi / 2)
staticconstexpr

◆ 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>
constexpr V ape::consts< V >::tau = static_cast<V>(pi * 2)
staticconstexpr

◆ two

template<typename V = double>
constexpr V ape::consts< V >::two = static_cast<V>(2)
staticconstexpr

◆ zero

template<typename V = double>
constexpr V ape::consts< V >::zero = static_cast<V>(0)
staticconstexpr

The documentation for this struct was generated from the following file: