GLM: constants.hpp Source File

GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

gtc/constants.hpp
Go to the documentation of this file.
1
39 #ifndef GLM_GTC_constants
40 #define GLM_GTC_constants
41
42 // Dependencies
43 #include "../detail/setup.hpp"
44
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTC_constants extension included")
47 #endif
48
49 namespace glm
50 {
53
57 template <typename genType>
58 GLM_FUNC_DECL genType epsilon();
59
62 template <typename genType>
63 GLM_FUNC_DECL genType zero();
64
67 template <typename genType>
68 GLM_FUNC_DECL genType one();
69
72 template <typename genType>
73 GLM_FUNC_DECL genType pi();
74
77 template <typename genType>
78 GLM_FUNC_DECL genType root_pi();
79
82 template <typename genType>
83 GLM_FUNC_DECL genType half_pi();
84
87 template <typename genType>
88 GLM_FUNC_DECL genType quarter_pi();
89
92 template <typename genType>
93 GLM_FUNC_DECL genType one_over_pi();
94
97 template <typename genType>
98 GLM_FUNC_DECL genType two_over_pi();
99
102 template <typename genType>
103 GLM_FUNC_DECL genType two_over_root_pi();
104
107 template <typename genType>
108 GLM_FUNC_DECL genType one_over_root_two();
109
112 template <typename genType>
113 GLM_FUNC_DECL genType root_half_pi();
114
117 template <typename genType>
118 GLM_FUNC_DECL genType root_two_pi();
119
122 template <typename genType>
123 GLM_FUNC_DECL genType root_ln_four();
124
127 template <typename genType>
128 GLM_FUNC_DECL genType e();
129
132 template <typename genType>
133 GLM_FUNC_DECL genType euler();
134
137 template <typename genType>
138 GLM_FUNC_DECL genType root_two();
139
142 template <typename genType>
143 GLM_FUNC_DECL genType root_three();
144
147 template <typename genType>
148 GLM_FUNC_DECL genType root_five();
149
152 template <typename genType>
153 GLM_FUNC_DECL genType ln_two();
154
157 template <typename genType>
158 GLM_FUNC_DECL genType ln_ten();
159
162 template <typename genType>
163 GLM_FUNC_DECL genType ln_ln_two();
164
167 template <typename genType>
168 GLM_FUNC_DECL genType third();
169
172 template <typename genType>
173 GLM_FUNC_DECL genType two_thirds();
174
177 template <typename genType>
178 GLM_FUNC_DECL genType golden_ratio();
179
181 } //namespace glm
182
183 #include "constants.inl"
184
185 #endif//GLM_GTC_constants
glm::e
GLM_FUNC_DECL genType e()
Return e constant.
glm::epsilon
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
glm::golden_ratio
GLM_FUNC_DECL genType golden_ratio()
Return the golden ratio constant.
glm::root_ln_four
GLM_FUNC_DECL genType root_ln_four()
Return sqrt(ln(4)).
glm::root_three
GLM_FUNC_DECL genType root_three()
Return sqrt(3).
glm::pi
GLM_FUNC_DECL genType pi()
Return the pi constant.
glm::root_two_pi
GLM_FUNC_DECL genType root_two_pi()
Return sqrt(2 * pi).
glm::ln_ten
GLM_FUNC_DECL genType ln_ten()
Return ln(10).
glm::one
GLM_FUNC_DECL genType one()
Return 1.
glm::two_thirds
GLM_FUNC_DECL genType two_thirds()
Return 2 / 3.
glm::zero
GLM_FUNC_DECL genType zero()
Return 0.
glm::one_over_root_two
GLM_FUNC_DECL genType one_over_root_two()
Return 1 / sqrt(2).
glm::ln_two
GLM_FUNC_DECL genType ln_two()
Return ln(2).
glm::two_over_root_pi
GLM_FUNC_DECL genType two_over_root_pi()
Return 2 / sqrt(pi).
glm::root_two
GLM_FUNC_DECL genType root_two()
Return sqrt(2).
glm::two_over_pi
GLM_FUNC_DECL genType two_over_pi()
Return 2 / pi.
glm::half_pi
GLM_FUNC_DECL genType half_pi()
Return pi / 2.
glm::quarter_pi
GLM_FUNC_DECL genType quarter_pi()
Return pi / 4.
glm::one_over_pi
GLM_FUNC_DECL genType one_over_pi()
Return 1 / pi.
glm::euler
GLM_FUNC_DECL genType euler()
Return Euler&#39;s constant.
glm::third
GLM_FUNC_DECL genType third()
Return 1 / 3.
glm::root_pi
GLM_FUNC_DECL genType root_pi()
Return square root of pi.
glm::root_half_pi
GLM_FUNC_DECL genType root_half_pi()
Return sqrt(pi / 2).
glm::root_five
GLM_FUNC_DECL genType root_five()
Return sqrt(5).
glm::ln_ln_two
GLM_FUNC_DECL genType ln_ln_two()
Return ln(ln(2)).