constants.hpp
Go to the documentation of this file.
#pragma once
// Dependencies
#include "../detail/setup.hpp"
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_GTC_constants extension included")
#endif
namespace glm
{
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType zero();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType one();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType two_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType root_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType half_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType three_over_two_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType quarter_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_two_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType four_over_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_root_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_root_two();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType root_half_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType root_two_pi();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType root_ln_four();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType e();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType euler();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType root_two();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType root_three();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType root_five();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType ln_two();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ten();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ln_two();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType third();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType two_thirds();
template <typename genType>
GLM_FUNC_DECL GLM_CONSTEXPR genType golden_ratio();
} //namespace glm
#include "constants.inl"
glm::root_two
GLM_FUNC_DECL GLM_CONSTEXPR genType root_two()
Return sqrt(2).
glm::root_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType root_pi()
Return square root of pi.
glm::zero
GLM_FUNC_DECL GLM_CONSTEXPR genType zero()
Return 0.
glm::one
GLM_FUNC_DECL GLM_CONSTEXPR genType one()
Return 1.
glm::euler
GLM_FUNC_DECL GLM_CONSTEXPR genType euler()
Return Euler's constant.
glm::epsilon
GLM_FUNC_DECL GLM_CONSTEXPR genType epsilon()
Return the epsilon constant for floating point types.
glm::e
GLM_FUNC_DECL GLM_CONSTEXPR genType e()
Return e constant.
glm::two_over_root_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_root_pi()
Return 2 / sqrt(pi).
glm::root_three
GLM_FUNC_DECL GLM_CONSTEXPR genType root_three()
Return sqrt(3).
glm::ln_ten
GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ten()
Return ln(10).
glm::third
GLM_FUNC_DECL GLM_CONSTEXPR genType third()
Return 1 / 3.
glm::ln_two
GLM_FUNC_DECL GLM_CONSTEXPR genType ln_two()
Return ln(2).
glm::one_over_root_two
GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_root_two()
Return 1 / sqrt(2).
glm::ln_ln_two
GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ln_two()
Return ln(ln(2)).
glm::three_over_two_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType three_over_two_pi()
Return pi / 2 * 3.
glm::half_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType half_pi()
Return pi / 2.
glm::one_over_two_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_two_pi()
Return 1 / (pi * 2).
glm::root_five
GLM_FUNC_DECL GLM_CONSTEXPR genType root_five()
Return sqrt(5).
glm::root_half_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType root_half_pi()
Return sqrt(pi / 2).
glm::root_two_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType root_two_pi()
Return sqrt(2 * pi).
glm::four_over_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType four_over_pi()
Return 4 / pi.
glm
Definition: _noise.hpp:11
glm::root_ln_four
GLM_FUNC_DECL GLM_CONSTEXPR genType root_ln_four()
Return sqrt(ln(4)).
glm::one_over_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_pi()
Return 1 / pi.
glm::two_thirds
GLM_FUNC_DECL GLM_CONSTEXPR genType two_thirds()
Return 2 / 3.
glm::quarter_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType quarter_pi()
Return pi / 4.
glm::pi
GLM_FUNC_DECL GLM_CONSTEXPR genType pi()
Return the pi constant.
glm::two_over_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_pi()
Return 2 / pi.
glm::golden_ratio
GLM_FUNC_DECL GLM_CONSTEXPR genType golden_ratio()
Return the golden ratio constant.
glm::two_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType two_pi()
Return pi * 2.