0.9.6: constants.hpp Source File

| 0.9.6

- Main Page
- Modules
- Files

- File List

constants.hpp
Go to the documentation of this file.
1
43 #pragma once
44
45 // Dependencies
46 #include "../detail/setup.hpp"
47
48 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
49 # pragma message("GLM: GLM_GTC_constants extension included")
50 #endif
51
52 namespace glm
53 {
56
59 template <typename genType>
60 GLM_FUNC_DECL genType epsilon();
61
64 template <typename genType>
65 GLM_FUNC_DECL genType zero();
66
69 template <typename genType>
70 GLM_FUNC_DECL genType one();
71
74 template <typename genType>
75 GLM_FUNC_DECL genType pi();
76
79 template <typename genType>
80 GLM_FUNC_DECL genType two_pi();
81
84 template <typename genType>
85 GLM_FUNC_DECL genType root_pi();
86
89 template <typename genType>
90 GLM_FUNC_DECL genType half_pi();
91
94 template <typename genType>
95 GLM_FUNC_DECL genType three_over_two_pi();
96
99 template <typename genType>
100 GLM_FUNC_DECL genType quarter_pi();
101
104 template <typename genType>
105 GLM_FUNC_DECL genType one_over_pi();
106
109 template <typename genType>
110 GLM_FUNC_DECL genType one_over_two_pi();
111
114 template <typename genType>
115 GLM_FUNC_DECL genType two_over_pi();
116
119 template <typename genType>
120 GLM_FUNC_DECL genType four_over_pi();
121
124 template <typename genType>
125 GLM_FUNC_DECL genType two_over_root_pi();
126
129 template <typename genType>
130 GLM_FUNC_DECL genType one_over_root_two();
131
134 template <typename genType>
135 GLM_FUNC_DECL genType root_half_pi();
136
139 template <typename genType>
140 GLM_FUNC_DECL genType root_two_pi();
141
144 template <typename genType>
145 GLM_FUNC_DECL genType root_ln_four();
146
149 template <typename genType>
150 GLM_FUNC_DECL genType e();
151
154 template <typename genType>
155 GLM_FUNC_DECL genType euler();
156
159 template <typename genType>
160 GLM_FUNC_DECL genType root_two();
161
164 template <typename genType>
165 GLM_FUNC_DECL genType root_three();
166
169 template <typename genType>
170 GLM_FUNC_DECL genType root_five();
171
174 template <typename genType>
175 GLM_FUNC_DECL genType ln_two();
176
179 template <typename genType>
180 GLM_FUNC_DECL genType ln_ten();
181
184 template <typename genType>
185 GLM_FUNC_DECL genType ln_ln_two();
186
189 template <typename genType>
190 GLM_FUNC_DECL genType third();
191
194 template <typename genType>
195 GLM_FUNC_DECL genType two_thirds();
196
199 template <typename genType>
200 GLM_FUNC_DECL genType golden_ratio();
201
203 } //namespace glm
204
205 #include "constants.inl"
glm::zero
GLM_FUNC_DECL genType zero()
Return 0.
glm::ln_ln_two
GLM_FUNC_DECL genType ln_ln_two()
Return ln(ln(2)).
glm::root_two_pi
GLM_FUNC_DECL genType root_two_pi()
Return sqrt(2 * pi).
glm::one_over_root_two
GLM_FUNC_DECL genType one_over_root_two()
Return 1 / sqrt(2).
glm::one_over_pi
GLM_FUNC_DECL genType one_over_pi()
Return 1 / pi.
glm::root_half_pi
GLM_FUNC_DECL genType root_half_pi()
Return sqrt(pi / 2).
glm::four_over_pi
GLM_FUNC_DECL genType four_over_pi()
Return 4 / pi.
glm::two_over_root_pi
GLM_FUNC_DECL genType two_over_root_pi()
Return 2 / sqrt(pi).
glm::one_over_two_pi
GLM_FUNC_DECL genType one_over_two_pi()
Return 1 / (pi * 2).
glm::third
GLM_FUNC_DECL genType third()
Return 1 / 3.
glm::ln_ten
GLM_FUNC_DECL genType ln_ten()
Return ln(10).
glm::half_pi
GLM_FUNC_DECL genType half_pi()
Return pi / 2.
glm::pi
GLM_FUNC_DECL genType pi()
Return the pi constant.
glm::golden_ratio
GLM_FUNC_DECL genType golden_ratio()
Return the golden ratio constant.
glm::euler
GLM_FUNC_DECL genType euler()
Return Euler's constant.
glm::root_pi
GLM_FUNC_DECL genType root_pi()
Return square root of pi.
glm::one
GLM_FUNC_DECL genType one()
Return 1.
glm::two_over_pi
GLM_FUNC_DECL genType two_over_pi()
Return 2 / pi.
glm::root_ln_four
GLM_FUNC_DECL genType root_ln_four()
Return sqrt(ln(4)).
glm::three_over_two_pi
GLM_FUNC_DECL genType three_over_two_pi()
Return pi / 2 * 3.
glm::root_five
GLM_FUNC_DECL genType root_five()
Return sqrt(5).
glm
Definition: _noise.hpp:39
glm::two_pi
GLM_FUNC_DECL genType two_pi()
Return pi * 2.
glm::epsilon
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
glm::e
GLM_FUNC_DECL genType e()
Return e constant.
glm::ln_two
GLM_FUNC_DECL genType ln_two()
Return ln(2).
glm::root_two
GLM_FUNC_DECL genType root_two()
Return sqrt(2).
glm::quarter_pi
GLM_FUNC_DECL genType quarter_pi()
Return pi / 4.
glm::root_three
GLM_FUNC_DECL genType root_three()
Return sqrt(3).
glm::two_thirds
GLM_FUNC_DECL genType two_thirds()
Return 2 / 3.