constants.hpp
Go to the documentation of this file.
#pragma once
// Dependencies
#include "../ext/scalar_constants.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_GTC_constants extension included")
#endif
namespace glm
{
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 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::third
GLM_FUNC_DECL GLM_CONSTEXPR genType third()
Return 1 / 3.
glm::root_two
GLM_FUNC_DECL GLM_CONSTEXPR genType root_two()
Return sqrt(2).
glm::one_over_root_two
GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_root_two()
Return 1 / sqrt(2).
glm::euler
GLM_FUNC_DECL GLM_CONSTEXPR genType euler()
Return Euler's constant.
glm::two_thirds
GLM_FUNC_DECL GLM_CONSTEXPR genType two_thirds()
Return 2 / 3.
glm::two_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType two_pi()
Return pi * 2.
glm::golden_ratio
GLM_FUNC_DECL GLM_CONSTEXPR genType golden_ratio()
Return the golden ratio constant.
glm::quarter_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType quarter_pi()
Return pi / 4.
glm::one
GLM_FUNC_DECL GLM_CONSTEXPR genType one()
Return 1.
glm::root_five
GLM_FUNC_DECL GLM_CONSTEXPR genType root_five()
Return sqrt(5).
glm::three_over_two_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType three_over_two_pi()
Return pi / 2 * 3.
glm::zero
GLM_FUNC_DECL GLM_CONSTEXPR genType zero()
Return 0.
glm::ln_ten
GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ten()
Return ln(10).
glm::root_three
GLM_FUNC_DECL GLM_CONSTEXPR genType root_three()
Return sqrt(3).
glm::root_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType root_pi()
Return square root of pi.
glm::e
GLM_FUNC_DECL GLM_CONSTEXPR genType e()
Return e constant.
glm::one_over_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType one_over_pi()
Return 1 / pi.
glm::two_over_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_pi()
Return 2 / pi.
glm::four_over_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType four_over_pi()
Return 4 / pi.
glm::root_two_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType root_two_pi()
Return sqrt(2 * pi).
glm::ln_two
GLM_FUNC_DECL GLM_CONSTEXPR genType ln_two()
Return ln(2).
glm::root_ln_four
GLM_FUNC_DECL GLM_CONSTEXPR genType root_ln_four()
Return sqrt(ln(4)).
glm::two_over_root_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType two_over_root_pi()
Return 2 / sqrt(pi).
glm::ln_ln_two
GLM_FUNC_DECL GLM_CONSTEXPR genType ln_ln_two()
Return ln(ln(2)).
glm::root_half_pi
GLM_FUNC_DECL GLM_CONSTEXPR genType root_half_pi()
Return sqrt(pi / 2).
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
Definition: common.hpp:20