46 #include "../detail/setup.hpp"
48 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
49 # pragma message("GLM: GLM_GTC_constants extension included")
59 template <
typename genType>
60 GLM_FUNC_DECL genType
epsilon();
64 template <
typename genType>
65 GLM_FUNC_DECL genType
zero();
69 template <
typename genType>
70 GLM_FUNC_DECL genType
one();
74 template <
typename genType>
75 GLM_FUNC_DECL genType
pi();
79 template <
typename genType>
80 GLM_FUNC_DECL genType
two_pi();
84 template <
typename genType>
85 GLM_FUNC_DECL genType
root_pi();
89 template <
typename genType>
90 GLM_FUNC_DECL genType
half_pi();
94 template <
typename genType>
99 template <
typename genType>
104 template <
typename genType>
109 template <
typename genType>
114 template <
typename genType>
119 template <
typename genType>
124 template <
typename genType>
129 template <
typename genType>
134 template <
typename genType>
139 template <
typename genType>
144 template <
typename genType>
149 template <
typename genType>
150 GLM_FUNC_DECL genType
e();
154 template <
typename genType>
155 GLM_FUNC_DECL genType
euler();
159 template <
typename genType>
164 template <
typename genType>
169 template <
typename genType>
174 template <
typename genType>
175 GLM_FUNC_DECL genType
ln_two();
179 template <
typename genType>
180 GLM_FUNC_DECL genType
ln_ten();
184 template <
typename genType>
189 template <
typename genType>
190 GLM_FUNC_DECL genType
third();
194 template <
typename genType>
199 template <
typename genType>
205 #include "constants.inl"
GLM_FUNC_DECL genType zero()
Return 0.
GLM_FUNC_DECL genType ln_ln_two()
Return ln(ln(2)).
GLM_FUNC_DECL genType root_two_pi()
Return sqrt(2 * pi).
GLM_FUNC_DECL genType one_over_root_two()
Return 1 / sqrt(2).
GLM_FUNC_DECL genType one_over_pi()
Return 1 / pi.
GLM_FUNC_DECL genType root_half_pi()
Return sqrt(pi / 2).
GLM_FUNC_DECL genType four_over_pi()
Return 4 / pi.
GLM_FUNC_DECL genType two_over_root_pi()
Return 2 / sqrt(pi).
GLM_FUNC_DECL genType one_over_two_pi()
Return 1 / (pi * 2).
GLM_FUNC_DECL genType third()
Return 1 / 3.
GLM_FUNC_DECL genType ln_ten()
Return ln(10).
GLM_FUNC_DECL genType half_pi()
Return pi / 2.
GLM_FUNC_DECL genType pi()
Return the pi constant.
GLM_FUNC_DECL genType golden_ratio()
Return the golden ratio constant.
GLM_FUNC_DECL genType euler()
Return Euler's constant.
GLM_FUNC_DECL genType root_pi()
Return square root of pi.
GLM_FUNC_DECL genType one()
Return 1.
GLM_FUNC_DECL genType two_over_pi()
Return 2 / pi.
GLM_FUNC_DECL genType root_ln_four()
Return sqrt(ln(4)).
GLM_FUNC_DECL genType three_over_two_pi()
Return pi / 2 * 3.
GLM_FUNC_DECL genType root_five()
Return sqrt(5).
GLM_FUNC_DECL genType two_pi()
Return pi * 2.
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
GLM_FUNC_DECL genType e()
Return e constant.
GLM_FUNC_DECL genType ln_two()
Return ln(2).
GLM_FUNC_DECL genType root_two()
Return sqrt(2).
GLM_FUNC_DECL genType quarter_pi()
Return pi / 4.
GLM_FUNC_DECL genType root_three()
Return sqrt(3).
GLM_FUNC_DECL genType two_thirds()
Return 2 / 3.