Flow Visualisation
func_common.hpp
Go to the documentation of this file.
1 
36 #ifndef GLM_CORE_func_common
37 #define GLM_CORE_func_common GLM_VERSION
38 
39 #include "_fixes.hpp"
40 
41 namespace glm
42 {
45 
52  template <typename genType>
53  GLM_FUNC_DECL genType abs(genType const & x);
54 
61  template <typename genType>
62  GLM_FUNC_DECL genType sign(genType const & x);
63 
70  template <typename genType>
71  GLM_FUNC_DECL genType floor(genType const & x);
72 
80  template <typename genType>
81  GLM_FUNC_DECL genType trunc(genType const & x);
82 
93  template <typename genType>
94  GLM_FUNC_DECL genType round(genType const & x);
95 
105  template <typename genType>
106  GLM_FUNC_DECL genType roundEven(genType const & x);
107 
115  template <typename genType>
116  GLM_FUNC_DECL genType ceil(genType const & x);
117 
124  template <typename genType>
125  GLM_FUNC_DECL genType fract(genType const & x);
126 
134  template <typename genType>
135  GLM_FUNC_DECL genType mod(
136  genType const & x,
137  genType const & y);
138 
146  template <typename genType>
147  GLM_FUNC_DECL genType mod(
148  genType const & x,
149  typename genType::value_type const & y);
150 
160  template <typename genType>
161  GLM_FUNC_DECL genType modf(
162  genType const & x,
163  genType & i);
164 
171  template <typename genType>
172  GLM_FUNC_DECL genType min(
173  genType const & x,
174  genType const & y);
175 
176  template <typename genType>
177  GLM_FUNC_DECL genType min(
178  genType const & x,
179  typename genType::value_type const & y);
180 
187  template <typename genType>
188  GLM_FUNC_DECL genType max(
189  genType const & x,
190  genType const & y);
191 
192  template <typename genType>
193  GLM_FUNC_DECL genType max(
194  genType const & x,
195  typename genType::value_type const & y);
196 
204  template <typename genType>
205  GLM_FUNC_DECL genType clamp(
206  genType const & x,
207  genType const & minVal,
208  genType const & maxVal);
209 
210  template <typename genType>
211  GLM_FUNC_DECL genType clamp(
212  genType const & x,
213  typename genType::value_type const & minVal,
214  typename genType::value_type const & maxVal);
215 
258  template <typename genTypeT, typename genTypeU>
259  GLM_FUNC_DECL genTypeT mix(genTypeT const & x, genTypeT const & y, genTypeU const & a);
260 
265  template <typename genType>
266  GLM_FUNC_DECL genType step(
267  genType const & edge,
268  genType const & x);
269 
270  template <typename genType>
271  GLM_FUNC_DECL genType step(
272  typename genType::value_type const & edge,
273  genType const & x);
274 
289  template <typename genType>
290  GLM_FUNC_DECL genType smoothstep(
291  genType const & edge0,
292  genType const & edge1,
293  genType const & x);
294 
295  template <typename genType>
296  GLM_FUNC_DECL genType smoothstep(
297  typename genType::value_type const & edge0,
298  typename genType::value_type const & edge1,
299  genType const & x);
300 
313  template <typename genType>
314  GLM_FUNC_DECL typename genType::bool_type isnan(genType const & x);
315 
326  template <typename genType>
327  GLM_FUNC_DECL typename genType::bool_type isinf(genType const & x);
328 
338  template <typename genType, typename genIType>
339  GLM_FUNC_DECL genIType floatBitsToInt(genType const & value);
340 
350  template <typename genType, typename genUType>
351  GLM_FUNC_DECL genUType floatBitsToUint(genType const & value);
352 
366  template <typename genType, typename genIType>
367  GLM_FUNC_DECL genType intBitsToFloat(genIType const & value);
368 
382  template <typename genType, typename genUType>
383  GLM_FUNC_DECL genType uintBitsToFloat(genUType const & value);
384 
391  template <typename genType>
392  GLM_FUNC_DECL genType fma(genType const & a, genType const & b, genType const & c);
393 
408  template <typename genType, typename genIType>
409  GLM_FUNC_DECL genType frexp(genType const & x, genIType & exp);
410 
422  template <typename genType, typename genIType>
423  GLM_FUNC_DECL genType ldexp(genType const & x, genIType const & exp);
424 
426 }//namespace glm
427 
428 #include "func_common.inl"
429 
430 #endif//GLM_CORE_func_common
GLM_FUNC_DECL genType ldexp(genType const &x, genIType const &exp)
GLM_FUNC_DECL genUType floatBitsToUint(genType const &value)
GLM_FUNC_DECL genType round(genType const &x)
Definition: func_common.inl:126
GLM_FUNC_DECL genType min(genType const &x, genType const &y)
Definition: func_common.inl:286
GLM_FUNC_DECL genType mod(genType const &x, genType const &y)
Definition: func_common.inl:210
GLM_FUNC_DECL genType trunc(genType const &x)
Definition: func_common.inl:116
GLM_FUNC_DECL genType frexp(genType const &x, genIType &exp)
Definition: _detail.hpp:38
GLM_FUNC_DECL genIType floatBitsToInt(genType const &value)
GLM_FUNC_DECL genType::bool_type isinf(genType const &x)
Definition: func_common.inl:897
GLM_FUNC_DECL genType uintBitsToFloat(genUType const &value)
GLM_FUNC_DECL genType step(genType const &edge, genType const &x)
Definition: func_common.inl:652
GLM_FUNC_DECL genType sign(genType const &x)
GLM_FUNC_DECL genType fract(genType const &x)
Definition: func_common.inl:196
GLM_FUNC_DECL genType modf(genType const &x, genType &i)
Definition: func_common.inl:226
GLM_FUNC_DECL genType floor(genType const &x)
Definition: func_common.inl:105
GLM_FUNC_DECL genType abs(genType const &x)
GLM_FUNC_DECL genType clamp(genType const &x, genType const &minVal, genType const &maxVal)
GLM_FUNC_DECL genType intBitsToFloat(genIType const &value)
GLM_FUNC_DECL genType exp(genType const &x)
Definition: func_exponential.inl:49
GLM_FUNC_DECL genType max(genType const &x, genType const &y)
Definition: func_common.inl:305
GLM_FUNC_DECL genType::bool_type isnan(genType const &x)
Definition: func_common.inl:841
GLM_FUNC_DECL genTypeT mix(genTypeT const &x, genTypeT const &y, genTypeU const &a)
GLM_FUNC_DECL genType fma(genType const &a, genType const &b, genType const &c)
Definition: func_common.inl:1137
GLM_FUNC_DECL genType ceil(genType const &x)
Definition: func_common.inl:184
#define GLM_FUNC_DECL
Definition: setup.hpp:678
GLM_FUNC_DECL genType smoothstep(genType const &edge0, genType const &edge1, genType const &x)
Definition: func_common.inl:743
GLM_FUNC_DECL genType roundEven(genType const &x)
Definition: func_common.inl:150