GLM  0.9.5
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_FUNC_DECL genType e()
Return e constant.
GLM_FUNC_DECL genType epsilon()
Return the epsilon constant for floating point types.
GLM_FUNC_DECL genType golden_ratio()
Return the golden ratio constant.
GLM_FUNC_DECL genType root_ln_four()
Return sqrt(ln(4)).
GLM_FUNC_DECL genType root_three()
Return sqrt(3).
GLM_FUNC_DECL genType pi()
Return the pi constant.
GLM_FUNC_DECL genType root_two_pi()
Return sqrt(2 * pi).
GLM_FUNC_DECL genType ln_ten()
Return ln(10).
GLM_FUNC_DECL genType one()
Return 1.
GLM_FUNC_DECL genType two_thirds()
Return 2 / 3.
GLM_FUNC_DECL genType zero()
Return 0.
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 two_over_root_pi()
Return 2 / sqrt(pi).
GLM_FUNC_DECL genType root_two()
Return sqrt(2).
GLM_FUNC_DECL genType two_over_pi()
Return 2 / pi.
GLM_FUNC_DECL genType half_pi()
Return pi / 2.
GLM_FUNC_DECL genType quarter_pi()
Return pi / 4.
GLM_FUNC_DECL genType one_over_pi()
Return 1 / pi.
GLM_FUNC_DECL genType euler()
Return Euler&#39;s constant.
GLM_FUNC_DECL genType third()
Return 1 / 3.
GLM_FUNC_DECL genType root_pi()
Return square root of pi.
GLM_FUNC_DECL genType root_half_pi()
Return sqrt(pi / 2).
GLM_FUNC_DECL genType root_five()
Return sqrt(5).
GLM_FUNC_DECL genType ln_ln_two()
Return ln(ln(2)).