- Main Page
- Related Pages
- Modules
- Files

- File List

gtc/constants.hpp
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 #ifndef GLM_GTC_constants
40 #define GLM_GTC_constants GLM_VERSION
41
42 // Dependency:
43 #include "../glm.hpp"
44 #include "../gtc/half_float.hpp"
45
46 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
47 # pragma message("GLM: GLM_GTC_constants extension included")
48 #endif
49
50 namespace glm
51 {
54
58 template <typename genType>
59 genType epsilon();
60
63 template <typename genType>
64 genType zero();
65
68 template <typename genType>
69 genType one();
70
73 template <typename genType>
74 genType pi();
75
78 template <typename genType>
79 genType root_pi();
80
83 template <typename genType>
84 genType half_pi();
85
88 template <typename genType>
89 genType quarter_pi();
90
93 template <typename genType>
94 genType one_over_pi();
95
98 template <typename genType>
99 genType two_over_pi();
100
103 template <typename genType>
104 genType two_over_root_pi();
105
108 template <typename genType>
109 genType one_over_root_two();
110
113 template <typename genType>
114 genType root_half_pi();
115
118 template <typename genType>
119 genType root_two_pi();
120
123 template <typename genType>
124 genType root_ln_four();
125
128 template <typename genType>
129 genType e();
130
133 template <typename genType>
134 genType euler();
135
138 template <typename genType>
139 genType root_two();
140
143 template <typename genType>
144 genType root_three();
145
148 template <typename genType>
149 genType root_five();
150
153 template <typename genType>
154 genType ln_two();
155
158 template <typename genType>
159 genType ln_ten();
160
163 template <typename genType>
164 genType ln_ln_two();
165
168 template <typename genType>
169 genType third();
170
173 template <typename genType>
174 genType two_thirds();
175
178 template <typename genType>
179 genType golden_ratio();
180
182 } //namespace glm
183
184 #include "constants.inl"
185
186 #endif//GLM_GTC_constants