0.9.6
constants.hpp
Go to the documentation of this file.
1 
39 #pragma once
40 
41 // Dependencies
42 #include "../detail/setup.hpp"
43 
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTC_constants extension included")
46 #endif
47 
48 namespace glm
49 {
52 
55  template <typename genType>
56  GLM_FUNC_DECL genType epsilon();
57 
60  template <typename genType>
61  GLM_FUNC_DECL genType zero();
62 
65  template <typename genType>
66  GLM_FUNC_DECL genType one();
67 
70  template <typename genType>
71  GLM_FUNC_DECL genType pi();
72 
75  template <typename genType>
76  GLM_FUNC_DECL genType two_pi();
77 
80  template <typename genType>
81  GLM_FUNC_DECL genType root_pi();
82 
85  template <typename genType>
86  GLM_FUNC_DECL genType half_pi();
87 
90  template <typename genType>
91  GLM_FUNC_DECL genType three_over_two_pi();
92 
95  template <typename genType>
96  GLM_FUNC_DECL genType quarter_pi();
97 
100  template <typename genType>
101  GLM_FUNC_DECL genType one_over_pi();
102 
105  template <typename genType>
106  GLM_FUNC_DECL genType one_over_two_pi();
107 
110  template <typename genType>
111  GLM_FUNC_DECL genType two_over_pi();
112 
115  template <typename genType>
116  GLM_FUNC_DECL genType four_over_pi();
117 
120  template <typename genType>
121  GLM_FUNC_DECL genType two_over_root_pi();
122 
125  template <typename genType>
126  GLM_FUNC_DECL genType one_over_root_two();
127 
130  template <typename genType>
131  GLM_FUNC_DECL genType root_half_pi();
132 
135  template <typename genType>
136  GLM_FUNC_DECL genType root_two_pi();
137 
140  template <typename genType>
141  GLM_FUNC_DECL genType root_ln_four();
142 
145  template <typename genType>
146  GLM_FUNC_DECL genType e();
147 
150  template <typename genType>
151  GLM_FUNC_DECL genType euler();
152 
155  template <typename genType>
156  GLM_FUNC_DECL genType root_two();
157 
160  template <typename genType>
161  GLM_FUNC_DECL genType root_three();
162 
165  template <typename genType>
166  GLM_FUNC_DECL genType root_five();
167 
170  template <typename genType>
171  GLM_FUNC_DECL genType ln_two();
172 
175  template <typename genType>
176  GLM_FUNC_DECL genType ln_ten();
177 
180  template <typename genType>
181  GLM_FUNC_DECL genType ln_ln_two();
182 
185  template <typename genType>
186  GLM_FUNC_DECL genType third();
187 
190  template <typename genType>
191  GLM_FUNC_DECL genType two_thirds();
192 
195  template <typename genType>
196  GLM_FUNC_DECL genType golden_ratio();
197 
199 } //namespace glm
200 
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).
Definition: _noise.hpp:31
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).