39 #ifndef GLM_GTC_constants
40 #define GLM_GTC_constants
43 #include "../detail/setup.hpp"
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTC_constants extension included")
57 template <
typename genType>
58 GLM_FUNC_DECL genType
epsilon();
62 template <
typename genType>
63 GLM_FUNC_DECL genType
zero();
67 template <
typename genType>
68 GLM_FUNC_DECL genType
one();
72 template <
typename genType>
73 GLM_FUNC_DECL genType
pi();
77 template <
typename genType>
78 GLM_FUNC_DECL genType
root_pi();
82 template <
typename genType>
83 GLM_FUNC_DECL genType
half_pi();
87 template <
typename genType>
92 template <
typename genType>
97 template <
typename genType>
102 template <
typename genType>
107 template <
typename genType>
112 template <
typename genType>
117 template <
typename genType>
122 template <
typename genType>
127 template <
typename genType>
128 GLM_FUNC_DECL genType
e();
132 template <
typename genType>
133 GLM_FUNC_DECL genType
euler();
137 template <
typename genType>
142 template <
typename genType>
147 template <
typename genType>
152 template <
typename genType>
153 GLM_FUNC_DECL genType
ln_two();
157 template <
typename genType>
158 GLM_FUNC_DECL genType
ln_ten();
162 template <
typename genType>
167 template <
typename genType>
168 GLM_FUNC_DECL genType
third();
172 template <
typename genType>
177 template <
typename genType>
183 #include "constants.inl"
185 #endif//GLM_GTC_constants
GLM_FUNC_DECL genType e()
Return e constant.
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
GLM_FUNC_DECL genType golden_ratio()
Return the golden ratio constant.
GLM_FUNC_DECL genType root_ln_four()
Return sqrt(ln(4)).
GLM_FUNC_DECL genType root_three()
Return sqrt(3).
GLM_FUNC_DECL genType pi()
Return the pi constant.
GLM_FUNC_DECL genType root_two_pi()
Return sqrt(2 * pi).
GLM_FUNC_DECL genType ln_ten()
Return ln(10).
GLM_FUNC_DECL genType one()
Return 1.
GLM_FUNC_DECL genType two_thirds()
Return 2 / 3.
GLM_FUNC_DECL genType zero()
Return 0.
GLM_FUNC_DECL genType one_over_root_two()
Return 1 / sqrt(2).
GLM_FUNC_DECL genType ln_two()
Return ln(2).
GLM_FUNC_DECL genType two_over_root_pi()
Return 2 / sqrt(pi).
GLM_FUNC_DECL genType root_two()
Return sqrt(2).
GLM_FUNC_DECL genType two_over_pi()
Return 2 / pi.
GLM_FUNC_DECL genType half_pi()
Return pi / 2.
GLM_FUNC_DECL genType quarter_pi()
Return pi / 4.
GLM_FUNC_DECL genType one_over_pi()
Return 1 / pi.
GLM_FUNC_DECL genType euler()
Return Euler's constant.
GLM_FUNC_DECL genType third()
Return 1 / 3.
GLM_FUNC_DECL genType root_pi()
Return square root of pi.
GLM_FUNC_DECL genType root_half_pi()
Return sqrt(pi / 2).
GLM_FUNC_DECL genType root_five()
Return sqrt(5).
GLM_FUNC_DECL genType ln_ln_two()
Return ln(ln(2)).