wfmath  1.0.3
A math library for the Worldforge system.
WFMath::numeric_constants< FloatType > Struct Template Reference

Static Public Member Functions

static FloatType pi ()
 The constant pi. More...
 
static FloatType sqrt_pi ()
 The square root of pi. More...
 
static FloatType log_pi ()
 The natural logarithm of pi. More...
 
static FloatType sqrt2 ()
 The square root of 2. More...
 
static FloatType sqrt3 ()
 The square root of 3. More...
 
static FloatType log2 ()
 The natural logarithm of 2. More...
 
static FloatType epsilon ()
 This is the attempted precision of the library. More...
 

Detailed Description

template<typename FloatType>
struct WFMath::numeric_constants< FloatType >

Definition at line 64 of file const.h.

Member Function Documentation

◆ epsilon()

template<typename FloatType >
static FloatType WFMath::numeric_constants< FloatType >::epsilon ( )
static

This is the attempted precision of the library.

Referenced by WFMath::BoundingSphere(), and WFMath::Equal().

◆ log2()

template<typename FloatType >
static FloatType WFMath::numeric_constants< FloatType >::log2 ( )
static

The natural logarithm of 2.

Referenced by WFMath::LogGamma().

◆ log_pi()

template<typename FloatType >
static FloatType WFMath::numeric_constants< FloatType >::log_pi ( )
static

The natural logarithm of pi.

Referenced by WFMath::LogGamma().

◆ pi()

template<typename FloatType >
static FloatType WFMath::numeric_constants< FloatType >::pi ( )
static

The constant pi.

Referenced by WFMath::Gamma().

◆ sqrt2()

template<typename FloatType >
static FloatType WFMath::numeric_constants< FloatType >::sqrt2 ( )
static

The square root of 2.

Referenced by WFMath::Gaussian().

◆ sqrt3()

template<typename FloatType >
static FloatType WFMath::numeric_constants< FloatType >::sqrt3 ( )
static

The square root of 3.

◆ sqrt_pi()

template<typename FloatType >
static FloatType WFMath::numeric_constants< FloatType >::sqrt_pi ( )
static

The square root of pi.

Referenced by WFMath::Gaussian().


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