42 #include "../detail/setup.hpp"
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTC_constants extension included")
55 template <
typename genType>
56 GLM_FUNC_DECL genType
epsilon();
60 template <
typename genType>
61 GLM_FUNC_DECL genType
zero();
65 template <
typename genType>
66 GLM_FUNC_DECL genType
one();
70 template <
typename genType>
71 GLM_FUNC_DECL genType
pi();
75 template <
typename genType>
76 GLM_FUNC_DECL genType
two_pi();
80 template <
typename genType>
81 GLM_FUNC_DECL genType
root_pi();
85 template <
typename genType>
86 GLM_FUNC_DECL genType
half_pi();
90 template <
typename genType>
95 template <
typename genType>
100 template <
typename genType>
105 template <
typename genType>
110 template <
typename genType>
115 template <
typename genType>
120 template <
typename genType>
125 template <
typename genType>
130 template <
typename genType>
135 template <
typename genType>
140 template <
typename genType>
145 template <
typename genType>
146 GLM_FUNC_DECL genType
e();
150 template <
typename genType>
151 GLM_FUNC_DECL genType
euler();
155 template <
typename genType>
160 template <
typename genType>
165 template <
typename genType>
170 template <
typename genType>
171 GLM_FUNC_DECL genType
ln_two();
175 template <
typename genType>
176 GLM_FUNC_DECL genType
ln_ten();
180 template <
typename genType>
185 template <
typename genType>
186 GLM_FUNC_DECL genType
third();
190 template <
typename genType>
195 template <
typename genType>
201 #include "constants.inl"
GLM_FUNC_DECL genType two_over_pi()
Return 2 / pi.
GLM_FUNC_DECL genType half_pi()
Return pi / 2.
GLM_FUNC_DECL genType root_ln_four()
Return sqrt(ln(4)).
GLM_FUNC_DECL genType two_pi()
Return pi * 2.
GLM_FUNC_DECL genType euler()
Return Euler's constant.
GLM_FUNC_DECL genType three_over_two_pi()
Return pi / 2 * 3.
GLM_FUNC_DECL genType root_pi()
Return square root of pi.
GLM_FUNC_DECL genType one()
Return 1.
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
GLM_FUNC_DECL genType root_two()
Return sqrt(2).
GLM_FUNC_DECL genType root_five()
Return sqrt(5).
GLM_FUNC_DECL genType e()
Return e constant.
GLM_FUNC_DECL genType two_thirds()
Return 2 / 3.
GLM_FUNC_DECL genType quarter_pi()
Return pi / 4.
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 root_half_pi()
Return sqrt(pi / 2).
GLM_FUNC_DECL genType root_three()
Return sqrt(3).
GLM_FUNC_DECL genType ln_ln_two()
Return ln(ln(2)).
GLM_FUNC_DECL genType zero()
Return 0.
GLM_FUNC_DECL genType four_over_pi()
Return 4 / pi.
GLM_FUNC_DECL genType root_two_pi()
Return sqrt(2 * pi).
GLM_FUNC_DECL genType pi()
Return the pi constant.
GLM_FUNC_DECL genType third()
Return 1 / 3.
GLM_FUNC_DECL genType golden_ratio()
Return the golden ratio constant.
GLM_FUNC_DECL genType one_over_pi()
Return 1 / pi.
GLM_FUNC_DECL genType two_over_root_pi()
Return 2 / sqrt(pi).
GLM_FUNC_DECL genType ln_ten()
Return ln(10).
GLM_FUNC_DECL genType one_over_two_pi()
Return 1 / (pi * 2).