CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Math::Constant Namespace Reference

Variables

template<typename T >
const T epsilon = glm:: epsilon <T>()
 Return the epsilon constant for floating point types.
 
template<typename T >
const T _0 = glm:: zero <T>()
 Return 0.
 
template<typename T >
const T _1 = glm:: one <T>()
 Return 1.
 
template<typename T >
const T pi = glm:: pi <T>()
 Return the pi constant.
 
template<typename T >
const T _2pi = glm:: two_pi <T>()
 Return pi///2.
 
template<typename T >
const T sqrtPi = glm:: root_pi <T>()
 Return square root of pi.
 
template<typename T >
const T pi_2 = glm:: half_pi <T>()
 Return pi / 2.
 
template<typename T >
const T _3pi_2 = glm:: three_over_two_pi <T>()
 Return pi / 2///3.
 
template<typename T >
const T pi_4 = glm:: quarter_pi <T>()
 Return pi / 4.
 
template<typename T >
const T _1_pi = glm:: one_over_pi <T>()
 Return 1 / pi.
 
template<typename T >
const T _1_2pi = glm:: one_over_two_pi <T>()
 Return 1 / (pi///2).
 
template<typename T >
const T _2_pi = glm:: two_over_pi <T>()
 Return 2 / pi.
 
template<typename T >
const T _4_pi = glm:: four_over_pi <T>()
 Return 4 / pi.
 
template<typename T >
const T _2_sqrtpi = glm:: two_over_root_pi <T>()
 Return 2 / sqrt(pi).
 
template<typename T >
const T _1_sqrt2 = glm:: one_over_root_two <T>()
 Return 1 / sqrt(2).
 
template<typename T >
const T sqrt_pi_2 = glm:: root_half_pi <T>()
 Return sqrt(pi / 2).
 
template<typename T >
const T sqrt_2pi = glm:: root_two_pi <T>()
 Return sqrt(2///pi).
 
template<typename T >
const T e = glm:: e <T>()
 Return e constant.
 
template<typename T >
const T euler = glm:: euler <T>()
 Return Euler's constant.
 
template<typename T >
const T sqrt2 = glm:: root_two <T>()
 Return sqrt(2).
 
template<typename T >
const T sqrt3 = glm:: root_three <T>()
 Return sqrt(3).
 
template<typename T >
const T sqrt5 = glm:: root_five <T>()
 Return sqrt(5).
 
template<typename T >
const T goldenRatio = glm:: golden_ratio <T>()
 Return the golden ratio constant.
 

Variable Documentation

◆ _0

template<typename T >
const T Math::Constant::_0 = glm:: zero <T>()
inline

Return 0.

◆ _1

template<typename T >
const T Math::Constant::_1 = glm:: one <T>()
inline

Return 1.

◆ _1_2pi

template<typename T >
const T Math::Constant::_1_2pi = glm:: one_over_two_pi <T>()
inline

Return 1 / (pi///2).

◆ _1_pi

template<typename T >
const T Math::Constant::_1_pi = glm:: one_over_pi <T>()
inline

Return 1 / pi.

◆ _1_sqrt2

template<typename T >
const T Math::Constant::_1_sqrt2 = glm:: one_over_root_two <T>()
inline

Return 1 / sqrt(2).

◆ _2_pi

template<typename T >
const T Math::Constant::_2_pi = glm:: two_over_pi <T>()
inline

Return 2 / pi.

◆ _2_sqrtpi

template<typename T >
const T Math::Constant::_2_sqrtpi = glm:: two_over_root_pi <T>()
inline

Return 2 / sqrt(pi).

◆ _2pi

template<typename T >
const T Math::Constant::_2pi = glm:: two_pi <T>()
inline

Return pi///2.

◆ _3pi_2

template<typename T >
const T Math::Constant::_3pi_2 = glm:: three_over_two_pi <T>()
inline

Return pi / 2///3.

◆ _4_pi

template<typename T >
const T Math::Constant::_4_pi = glm:: four_over_pi <T>()
inline

Return 4 / pi.

◆ e

template<typename T >
const T Math::Constant::e = glm:: e <T>()
inline

Return e constant.

◆ epsilon

template<typename T >
const T Math::Constant::epsilon = glm:: epsilon <T>()
inline

Return the epsilon constant for floating point types.

◆ euler

template<typename T >
const T Math::Constant::euler = glm:: euler <T>()
inline

Return Euler's constant.

◆ goldenRatio

template<typename T >
const T Math::Constant::goldenRatio = glm:: golden_ratio <T>()
inline

Return the golden ratio constant.

◆ pi

template<typename T >
const T Math::Constant::pi = glm:: pi <T>()
inline

Return the pi constant.

◆ pi_2

template<typename T >
const T Math::Constant::pi_2 = glm:: half_pi <T>()
inline

Return pi / 2.

◆ pi_4

template<typename T >
const T Math::Constant::pi_4 = glm:: quarter_pi <T>()
inline

Return pi / 4.

◆ sqrt2

template<typename T >
const T Math::Constant::sqrt2 = glm:: root_two <T>()
inline

Return sqrt(2).

◆ sqrt3

template<typename T >
const T Math::Constant::sqrt3 = glm:: root_three <T>()
inline

Return sqrt(3).

◆ sqrt5

template<typename T >
const T Math::Constant::sqrt5 = glm:: root_five <T>()
inline

Return sqrt(5).

◆ sqrt_2pi

template<typename T >
const T Math::Constant::sqrt_2pi = glm:: root_two_pi <T>()
inline

Return sqrt(2///pi).

◆ sqrt_pi_2

template<typename T >
const T Math::Constant::sqrt_pi_2 = glm:: root_half_pi <T>()
inline

Return sqrt(pi / 2).

◆ sqrtPi

template<typename T >
const T Math::Constant::sqrtPi = glm:: root_pi <T>()
inline

Return square root of pi.