From 07b2912508d51b99de950e67dd7cfc48800dc0c3 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 5 May 2016 15:07:31 +0200 Subject: Added GLM library (nw) --- 3rdparty/glm/doc/api/a00136_source.html | 549 ++++++++++++++++++++++++++++++++ 1 file changed, 549 insertions(+) create mode 100644 3rdparty/glm/doc/api/a00136_source.html (limited to '3rdparty/glm/doc/api/a00136_source.html') diff --git a/3rdparty/glm/doc/api/a00136_source.html b/3rdparty/glm/doc/api/a00136_source.html new file mode 100644 index 00000000000..93e64c75999 --- /dev/null +++ b/3rdparty/glm/doc/api/a00136_source.html @@ -0,0 +1,549 @@ + + + + + + +0.9.7: type_vec4.hpp Source File + + + + + + +
+
+ + + + + + + +
+
0.9.7 +
+
+
+ + + + + +
+
+
+
type_vec4.hpp
+
+
+Go to the documentation of this file.
1 
+
33 #pragma once
+
34 
+
35 #include "setup.hpp"
+
36 #include "type_vec.hpp"
+
37 #ifdef GLM_SWIZZLE
+
38 # if GLM_HAS_ANONYMOUS_UNION
+
39 # include "_swizzle.hpp"
+
40 # else
+
41 # include "_swizzle_func.hpp"
+
42 # endif
+
43 #endif //GLM_SWIZZLE
+
44 #include <cstddef>
+
45 
+
46 namespace glm{
+
47 namespace detail
+
48 {
+
49  template <typename T>
+
50  struct simd
+
51  {
+
52  typedef T type[4];
+
53  };
+
54 
+
55 # define GLM_NOT_BUGGY_VC32BITS !(GLM_MODEL == GLM_MODEL_32 && (GLM_COMPILER & GLM_COMPILER_VC) && GLM_COMPILER < GLM_COMPILER_VC2013)
+
56 
+
57 # if (GLM_ARCH & GLM_ARCH_SSE2) && GLM_NOT_BUGGY_VC32BITS
+
58  template <>
+
59  struct simd<float>
+
60  {
+
61  typedef __m128 type;
+
62  };
+
63 
+
64  template <>
+
65  struct simd<int>
+
66  {
+
67  typedef __m128i type;
+
68  };
+
69 
+
70  template <>
+
71  struct simd<unsigned int>
+
72  {
+
73  typedef __m128i type;
+
74  };
+
75 # endif
+
76 
+
77 # if (GLM_ARCH & GLM_ARCH_AVX) && GLM_NOT_BUGGY_VC32BITS
+
78  template <>
+
79  struct simd<double>
+
80  {
+
81  typedef __m256d type;
+
82  };
+
83 # endif
+
84 
+
85 # if (GLM_ARCH & GLM_ARCH_AVX2) && GLM_NOT_BUGGY_VC32BITS
+
86  template <>
+
87  struct simd<int64>
+
88  {
+
89  typedef __m256i type;
+
90  };
+
91 
+
92  template <>
+
93  struct simd<uint64>
+
94  {
+
95  typedef __m256i type;
+
96  };
+
97 # endif
+
98 
+
99 }//namespace detail
+
100 
+
101  template <typename T, precision P = defaultp>
+
102  struct tvec4
+
103  {
+
104  // -- Implementation detail --
+
105 
+
106  typedef tvec4<T, P> type;
+
107  typedef tvec4<bool, P> bool_type;
+
108  typedef T value_type;
+
109 
+
110 # ifdef GLM_META_PROG_HELPERS
+
111  static GLM_RELAXED_CONSTEXPR length_t components = 4;
+
112  static GLM_RELAXED_CONSTEXPR precision prec = P;
+
113 # endif//GLM_META_PROG_HELPERS
+
114 
+
115  // -- Data --
+
116 
+
117 # if GLM_HAS_ANONYMOUS_UNION
+
118  union
+
119  {
+
120  struct { T x, y, z, w;};
+
121  struct { T r, g, b, a; };
+
122  struct { T s, t, p, q; };
+
123 
+
124  typename detail::simd<T>::type data;
+
125 
+
126 # ifdef GLM_SWIZZLE
+
127  _GLM_SWIZZLE4_2_MEMBERS(T, P, tvec2, x, y, z, w)
+
128  _GLM_SWIZZLE4_2_MEMBERS(T, P, tvec2, r, g, b, a)
+
129  _GLM_SWIZZLE4_2_MEMBERS(T, P, tvec2, s, t, p, q)
+
130  _GLM_SWIZZLE4_3_MEMBERS(T, P, tvec3, x, y, z, w)
+
131  _GLM_SWIZZLE4_3_MEMBERS(T, P, tvec3, r, g, b, a)
+
132  _GLM_SWIZZLE4_3_MEMBERS(T, P, tvec3, s, t, p, q)
+
133  _GLM_SWIZZLE4_4_MEMBERS(T, P, tvec4, x, y, z, w)
+
134  _GLM_SWIZZLE4_4_MEMBERS(T, P, tvec4, r, g, b, a)
+
135  _GLM_SWIZZLE4_4_MEMBERS(T, P, tvec4, s, t, p, q)
+
136 # endif//GLM_SWIZZLE
+
137  };
+
138 # else
+
139  union { T x, r, s; };
+
140  union { T y, g, t; };
+
141  union { T z, b, p; };
+
142  union { T w, a, q; };
+
143 
+
144 # ifdef GLM_SWIZZLE
+
145  GLM_SWIZZLE_GEN_VEC_FROM_VEC4(T, P, tvec4, tvec2, tvec3, tvec4)
+
146 # endif//GLM_SWIZZLE
+
147 # endif//GLM_LANG
+
148 
+
149  // -- Component accesses --
+
150 
+
151 # ifdef GLM_FORCE_SIZE_FUNC
+
152  typedef size_t size_type;
+
154  GLM_FUNC_DECL GLM_CONSTEXPR size_type size() const;
+
155 
+
156  GLM_FUNC_DECL T & operator[](size_type i);
+
157  GLM_FUNC_DECL T const & operator[](size_type i) const;
+
158 # else
+
159  typedef length_t length_type;
+
161  GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const;
+
162 
+
163  GLM_FUNC_DECL T & operator[](length_type i);
+
164  GLM_FUNC_DECL T const & operator[](length_type i) const;
+
165 # endif//GLM_FORCE_SIZE_FUNC
+
166 
+
167  // -- Implicit basic constructors --
+
168 
+
169  GLM_FUNC_DECL tvec4() GLM_DEFAULT_CTOR;
+
170  GLM_FUNC_DECL tvec4(tvec4<T, P> const & v) GLM_DEFAULT;
+
171  template <precision Q>
+
172  GLM_FUNC_DECL tvec4(tvec4<T, Q> const & v);
+
173 
+
174  // -- Explicit basic constructors --
+
175 
+
176  GLM_FUNC_DECL explicit tvec4(ctor);
+
177  GLM_FUNC_DECL explicit tvec4(T s);
+
178  GLM_FUNC_DECL tvec4(T a, T b, T c, T d);
+
179 
+
180  // -- Conversion scalar constructors --
+
181 
+
183  template <typename A, typename B, typename C, typename D>
+
184  GLM_FUNC_DECL tvec4(A a, B b, C c, D d);
+
185  template <typename A, typename B, typename C, typename D>
+
186  GLM_FUNC_DECL tvec4(tvec1<A, P> const & a, tvec1<B, P> const & b, tvec1<C, P> const & c, tvec1<D, P> const & d);
+
187 
+
188  // -- Conversion vector constructors --
+
189 
+
191  template <typename A, typename B, typename C, precision Q>
+
192  GLM_FUNC_DECL explicit tvec4(tvec2<A, Q> const & a, B b, C c);
+
194  template <typename A, typename B, typename C, precision Q>
+
195  GLM_FUNC_DECL explicit tvec4(tvec2<A, Q> const & a, tvec1<B, Q> const & b, tvec1<C, Q> const & c);
+
197  template <typename A, typename B, typename C, precision Q>
+
198  GLM_FUNC_DECL explicit tvec4(A a, tvec2<B, Q> const & b, C c);
+
200  template <typename A, typename B, typename C, precision Q>
+
201  GLM_FUNC_DECL explicit tvec4(tvec1<A, Q> const & a, tvec2<B, Q> const & b, tvec1<C, Q> const & c);
+
203  template <typename A, typename B, typename C, precision Q>
+
204  GLM_FUNC_DECL explicit tvec4(A a, B b, tvec2<C, Q> const & c);
+
206  template <typename A, typename B, typename C, precision Q>
+
207  GLM_FUNC_DECL explicit tvec4(tvec1<A, Q> const & a, tvec1<B, Q> const & b, tvec2<C, Q> const & c);
+
209  template <typename A, typename B, precision Q>
+
210  GLM_FUNC_DECL explicit tvec4(tvec3<A, Q> const & a, B b);
+
212  template <typename A, typename B, precision Q>
+
213  GLM_FUNC_DECL explicit tvec4(tvec3<A, Q> const & a, tvec1<B, Q> const & b);
+
215  template <typename A, typename B, precision Q>
+
216  GLM_FUNC_DECL explicit tvec4(A a, tvec3<B, Q> const & b);
+
218  template <typename A, typename B, precision Q>
+
219  GLM_FUNC_DECL explicit tvec4(tvec1<A, Q> const & a, tvec3<B, Q> const & b);
+
221  template <typename A, typename B, precision Q>
+
222  GLM_FUNC_DECL explicit tvec4(tvec2<A, Q> const & a, tvec2<B, Q> const & b);
+
223 
+
225  template <typename U, precision Q>
+
226  GLM_FUNC_DECL GLM_EXPLICIT tvec4(tvec4<U, Q> const & v);
+
227 
+
228  // -- Swizzle constructors --
+
229 
+
230 # if GLM_HAS_ANONYMOUS_UNION && defined(GLM_SWIZZLE)
+
231  template <int E0, int E1, int E2, int E3>
+
232  GLM_FUNC_DECL tvec4(detail::_swizzle<4, T, P, tvec4<T, P>, E0, E1, E2, E3> const & that)
+
233  {
+
234  *this = that();
+
235  }
+
236 
+
237  template <int E0, int E1, int F0, int F1>
+
238  GLM_FUNC_DECL tvec4(detail::_swizzle<2, T, P, tvec2<T, P>, E0, E1, -1, -2> const & v, detail::_swizzle<2, T, P, tvec2<T, P>, F0, F1, -1, -2> const & u)
+
239  {
+
240  *this = tvec4<T, P>(v(), u());
+
241  }
+
242 
+
243  template <int E0, int E1>
+
244  GLM_FUNC_DECL tvec4(T const & x, T const & y, detail::_swizzle<2, T, P, tvec2<T, P>, E0, E1, -1, -2> const & v)
+
245  {
+
246  *this = tvec4<T, P>(x, y, v());
+
247  }
+
248 
+
249  template <int E0, int E1>
+
250  GLM_FUNC_DECL tvec4(T const & x, detail::_swizzle<2, T, P, tvec2<T, P>, E0, E1, -1, -2> const & v, T const & w)
+
251  {
+
252  *this = tvec4<T, P>(x, v(), w);
+
253  }
+
254 
+
255  template <int E0, int E1>
+
256  GLM_FUNC_DECL tvec4(detail::_swizzle<2, T, P, tvec2<T, P>, E0, E1, -1, -2> const & v, T const & z, T const & w)
+
257  {
+
258  *this = tvec4<T, P>(v(), z, w);
+
259  }
+
260 
+
261  template <int E0, int E1, int E2>
+
262  GLM_FUNC_DECL tvec4(detail::_swizzle<3, T, P, tvec3<T, P>, E0, E1, E2, -1> const & v, T const & w)
+
263  {
+
264  *this = tvec4<T, P>(v(), w);
+
265  }
+
266 
+
267  template <int E0, int E1, int E2>
+
268  GLM_FUNC_DECL tvec4(T const & x, detail::_swizzle<3, T, P, tvec3<T, P>, E0, E1, E2, -1> const & v)
+
269  {
+
270  *this = tvec4<T, P>(x, v());
+
271  }
+
272 # endif// GLM_HAS_ANONYMOUS_UNION && defined(GLM_SWIZZLE)
+
273 
+
274  // -- Unary arithmetic operators --
+
275 
+
276  GLM_FUNC_DECL tvec4<T, P> & operator=(tvec4<T, P> const & v) GLM_DEFAULT;
+
277 
+
278  template <typename U>
+
279  GLM_FUNC_DECL tvec4<T, P> & operator=(tvec4<U, P> const & v);
+
280  template <typename U>
+
281  GLM_FUNC_DECL tvec4<T, P> & operator+=(U scalar);
+
282  template <typename U>
+
283  GLM_FUNC_DECL tvec4<T, P> & operator+=(tvec1<U, P> const & v);
+
284  template <typename U>
+
285  GLM_FUNC_DECL tvec4<T, P> & operator+=(tvec4<U, P> const & v);
+
286  template <typename U>
+
287  GLM_FUNC_DECL tvec4<T, P> & operator-=(U scalar);
+
288  template <typename U>
+
289  GLM_FUNC_DECL tvec4<T, P> & operator-=(tvec1<U, P> const & v);
+
290  template <typename U>
+
291  GLM_FUNC_DECL tvec4<T, P> & operator-=(tvec4<U, P> const & v);
+
292  template <typename U>
+
293  GLM_FUNC_DECL tvec4<T, P> & operator*=(U scalar);
+
294  template <typename U>
+
295  GLM_FUNC_DECL tvec4<T, P> & operator*=(tvec1<U, P> const & v);
+
296  template <typename U>
+
297  GLM_FUNC_DECL tvec4<T, P> & operator*=(tvec4<U, P> const & v);
+
298  template <typename U>
+
299  GLM_FUNC_DECL tvec4<T, P> & operator/=(U scalar);
+
300  template <typename U>
+
301  GLM_FUNC_DECL tvec4<T, P> & operator/=(tvec1<U, P> const & v);
+
302  template <typename U>
+
303  GLM_FUNC_DECL tvec4<T, P> & operator/=(tvec4<U, P> const & v);
+
304 
+
305  // -- Increment and decrement operators --
+
306 
+
307  GLM_FUNC_DECL tvec4<T, P> & operator++();
+
308  GLM_FUNC_DECL tvec4<T, P> & operator--();
+
309  GLM_FUNC_DECL tvec4<T, P> operator++(int);
+
310  GLM_FUNC_DECL tvec4<T, P> operator--(int);
+
311 
+
312  // -- Unary bit operators --
+
313 
+
314  template <typename U>
+
315  GLM_FUNC_DECL tvec4<T, P> & operator%=(U scalar);
+
316  template <typename U>
+
317  GLM_FUNC_DECL tvec4<T, P> & operator%=(tvec1<U, P> const & v);
+
318  template <typename U>
+
319  GLM_FUNC_DECL tvec4<T, P> & operator%=(tvec4<U, P> const & v);
+
320  template <typename U>
+
321  GLM_FUNC_DECL tvec4<T, P> & operator&=(U scalar);
+
322  template <typename U>
+
323  GLM_FUNC_DECL tvec4<T, P> & operator&=(tvec1<U, P> const & v);
+
324  template <typename U>
+
325  GLM_FUNC_DECL tvec4<T, P> & operator&=(tvec4<U, P> const & v);
+
326  template <typename U>
+
327  GLM_FUNC_DECL tvec4<T, P> & operator|=(U scalar);
+
328  template <typename U>
+
329  GLM_FUNC_DECL tvec4<T, P> & operator|=(tvec1<U, P> const & v);
+
330  template <typename U>
+
331  GLM_FUNC_DECL tvec4<T, P> & operator|=(tvec4<U, P> const & v);
+
332  template <typename U>
+
333  GLM_FUNC_DECL tvec4<T, P> & operator^=(U scalar);
+
334  template <typename U>
+
335  GLM_FUNC_DECL tvec4<T, P> & operator^=(tvec1<U, P> const & v);
+
336  template <typename U>
+
337  GLM_FUNC_DECL tvec4<T, P> & operator^=(tvec4<U, P> const & v);
+
338  template <typename U>
+
339  GLM_FUNC_DECL tvec4<T, P> & operator<<=(U scalar);
+
340  template <typename U>
+
341  GLM_FUNC_DECL tvec4<T, P> & operator<<=(tvec1<U, P> const & v);
+
342  template <typename U>
+
343  GLM_FUNC_DECL tvec4<T, P> & operator<<=(tvec4<U, P> const & v);
+
344  template <typename U>
+
345  GLM_FUNC_DECL tvec4<T, P> & operator>>=(U scalar);
+
346  template <typename U>
+
347  GLM_FUNC_DECL tvec4<T, P> & operator>>=(tvec1<U, P> const & v);
+
348  template <typename U>
+
349  GLM_FUNC_DECL tvec4<T, P> & operator>>=(tvec4<U, P> const & v);
+
350  };
+
351 
+
352  // -- Unary operators --
+
353 
+
354  template <typename T, precision P>
+
355  GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v);
+
356 
+
357  // -- Binary operators --
+
358 
+
359  template <typename T, precision P>
+
360  GLM_FUNC_DECL tvec4<T, P> operator+(tvec4<T, P> const & v, T scalar);
+
361 
+
362  template <typename T, precision P>
+
363  GLM_FUNC_DECL tvec4<T, P> operator+(tvec4<T, P> const & v, tvec1<T, P> const & s);
+
364 
+
365  template <typename T, precision P>
+
366  GLM_FUNC_DECL tvec4<T, P> operator+(T scalar, tvec4<T, P> const & v);
+
367 
+
368  template <typename T, precision P>
+
369  GLM_FUNC_DECL tvec4<T, P> operator+(tvec1<T, P> const & s, tvec4<T, P> const & v);
+
370 
+
371  template <typename T, precision P>
+
372  GLM_FUNC_DECL tvec4<T, P> operator+(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
373 
+
374  template <typename T, precision P>
+
375  GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v, T scalar);
+
376 
+
377  template <typename T, precision P>
+
378  GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v, tvec1<T, P> const & s);
+
379 
+
380  template <typename T, precision P>
+
381  GLM_FUNC_DECL tvec4<T, P> operator-(T scalar, tvec4<T, P> const & v);
+
382 
+
383  template <typename T, precision P>
+
384  GLM_FUNC_DECL tvec4<T, P> operator-(tvec1<T, P> const & s, tvec4<T, P> const & v);
+
385 
+
386  template <typename T, precision P>
+
387  GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
388 
+
389  template <typename T, precision P>
+
390  GLM_FUNC_DECL tvec4<T, P> operator*(tvec4<T, P> const & v, T scalar);
+
391 
+
392  template <typename T, precision P>
+
393  GLM_FUNC_DECL tvec4<T, P> operator*(tvec4<T, P> const & v, tvec1<T, P> const & s);
+
394 
+
395  template <typename T, precision P>
+
396  GLM_FUNC_DECL tvec4<T, P> operator*(T scalar, tvec4<T, P> const & v);
+
397 
+
398  template <typename T, precision P>
+
399  GLM_FUNC_DECL tvec4<T, P> operator*(tvec1<T, P> const & s, tvec4<T, P> const & v);
+
400 
+
401  template <typename T, precision P>
+
402  GLM_FUNC_DECL tvec4<T, P> operator*(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
403 
+
404  template <typename T, precision P>
+
405  GLM_FUNC_DECL tvec4<T, P> operator/(tvec4<T, P> const & v, T scalar);
+
406 
+
407  template <typename T, precision P>
+
408  GLM_FUNC_DECL tvec4<T, P> operator/(tvec4<T, P> const & v, tvec1<T, P> const & s);
+
409 
+
410  template <typename T, precision P>
+
411  GLM_FUNC_DECL tvec4<T, P> operator/(T scalar, tvec4<T, P> const & v);
+
412 
+
413  template <typename T, precision P>
+
414  GLM_FUNC_DECL tvec4<T, P> operator/(tvec1<T, P> const & s, tvec4<T, P> const & v);
+
415 
+
416  template <typename T, precision P>
+
417  GLM_FUNC_DECL tvec4<T, P> operator/(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
418 
+
419  template <typename T, precision P>
+
420  GLM_FUNC_DECL bool operator==(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
421 
+
422  template <typename T, precision P>
+
423  GLM_FUNC_DECL bool operator!=(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
424 
+
425  template <typename T, precision P>
+
426  GLM_FUNC_DECL tvec4<T, P> operator%(tvec4<T, P> const & v, T scalar);
+
427 
+
428  template <typename T, precision P>
+
429  GLM_FUNC_DECL tvec4<T, P> operator%(tvec4<T, P> const & v, tvec1<T, P> const & s);
+
430 
+
431  template <typename T, precision P>
+
432  GLM_FUNC_DECL tvec4<T, P> operator%(T scalar, tvec4<T, P> const & v);
+
433 
+
434  template <typename T, precision P>
+
435  GLM_FUNC_DECL tvec4<T, P> operator%(tvec1<T, P> const & s, tvec4<T, P> const & v);
+
436 
+
437  template <typename T, precision P>
+
438  GLM_FUNC_DECL tvec4<T, P> operator%(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
439 
+
440  template <typename T, precision P>
+
441  GLM_FUNC_DECL tvec4<T, P> operator&(tvec4<T, P> const & v, T scalar);
+
442 
+
443  template <typename T, precision P>
+
444  GLM_FUNC_DECL tvec4<T, P> operator&(tvec4<T, P> const & v, tvec1<T, P> const & s);
+
445 
+
446  template <typename T, precision P>
+
447  GLM_FUNC_DECL tvec4<T, P> operator&(T scalar, tvec4<T, P> const & v);
+
448 
+
449  template <typename T, precision P>
+
450  GLM_FUNC_DECL tvec4<T, P> operator&(tvec1<T, P> const & s, tvec4<T, P> const & v);
+
451 
+
452  template <typename T, precision P>
+
453  GLM_FUNC_DECL tvec4<T, P> operator&(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
454 
+
455  template <typename T, precision P>
+
456  GLM_FUNC_DECL tvec4<T, P> operator|(tvec4<T, P> const & v, T scalar);
+
457 
+
458  template <typename T, precision P>
+
459  GLM_FUNC_DECL tvec4<T, P> operator|(tvec4<T, P> const & v, tvec1<T, P> const & s);
+
460 
+
461  template <typename T, precision P>
+
462  GLM_FUNC_DECL tvec4<T, P> operator|(T scalar, tvec4<T, P> const & v);
+
463 
+
464  template <typename T, precision P>
+
465  GLM_FUNC_DECL tvec4<T, P> operator|(tvec1<T, P> const & s, tvec4<T, P> const & v);
+
466 
+
467  template <typename T, precision P>
+
468  GLM_FUNC_DECL tvec4<T, P> operator|(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
469 
+
470  template <typename T, precision P>
+
471  GLM_FUNC_DECL tvec4<T, P> operator^(tvec4<T, P> const & v, T scalar);
+
472 
+
473  template <typename T, precision P>
+
474  GLM_FUNC_DECL tvec4<T, P> operator^(tvec4<T, P> const & v, tvec1<T, P> const & s);
+
475 
+
476  template <typename T, precision P>
+
477  GLM_FUNC_DECL tvec4<T, P> operator^(T scalar, tvec4<T, P> const & v);
+
478 
+
479  template <typename T, precision P>
+
480  GLM_FUNC_DECL tvec4<T, P> operator^(tvec1<T, P> const & s, tvec4<T, P> const & v);
+
481 
+
482  template <typename T, precision P>
+
483  GLM_FUNC_DECL tvec4<T, P> operator^(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
484 
+
485  template <typename T, precision P>
+
486  GLM_FUNC_DECL tvec4<T, P> operator<<(tvec4<T, P> const & v, T scalar);
+
487 
+
488  template <typename T, precision P>
+
489  GLM_FUNC_DECL tvec4<T, P> operator<<(tvec4<T, P> const & v, tvec1<T, P> const & s);
+
490 
+
491  template <typename T, precision P>
+
492  GLM_FUNC_DECL tvec4<T, P> operator<<(T scalar, tvec4<T, P> const & v);
+
493 
+
494  template <typename T, precision P>
+
495  GLM_FUNC_DECL tvec4<T, P> operator<<(tvec1<T, P> const & s, tvec4<T, P> const & v);
+
496 
+
497  template <typename T, precision P>
+
498  GLM_FUNC_DECL tvec4<T, P> operator<<(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
499 
+
500  template <typename T, precision P>
+
501  GLM_FUNC_DECL tvec4<T, P> operator>>(tvec4<T, P> const & v, T scalar);
+
502 
+
503  template <typename T, precision P>
+
504  GLM_FUNC_DECL tvec4<T, P> operator>>(tvec4<T, P> const & v, tvec1<T, P> const & s);
+
505 
+
506  template <typename T, precision P>
+
507  GLM_FUNC_DECL tvec4<T, P> operator>>(T scalar, tvec4<T, P> const & v);
+
508 
+
509  template <typename T, precision P>
+
510  GLM_FUNC_DECL tvec4<T, P> operator>>(tvec1<T, P> const & s, tvec4<T, P> const & v);
+
511 
+
512  template <typename T, precision P>
+
513  GLM_FUNC_DECL tvec4<T, P> operator>>(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
514 
+
515  template <typename T, precision P>
+
516  GLM_FUNC_DECL tvec4<T, P> operator~(tvec4<T, P> const & v);
+
517 
+
518  // -- Boolean operators --
+
519 
+
520  template <typename T, precision P>
+
521  GLM_FUNC_DECL bool operator==(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
522 
+
523  template <typename T, precision P>
+
524  GLM_FUNC_DECL bool operator!=(tvec4<T, P> const & v1, tvec4<T, P> const & v2);
+
525 }//namespace glm
+
526 
+
527 #ifndef GLM_EXTERNAL_TEMPLATE
+
528 #include "type_vec4.inl"
+
529 #endif//GLM_EXTERNAL_TEMPLATE
+
GLM_FUNC_DECL T length(vecType< T, P > const &x)
Returns the length of x, i.e., sqrt(x * x).
+
Definition: _noise.hpp:40
+
OpenGL Mathematics (glm.g-truc.net)
+
OpenGL Mathematics (glm.g-truc.net)
+
OpenGL Mathematics (glm.g-truc.net)
+
OpenGL Mathematics (glm.g-truc.net)
+
+ + + + -- cgit v1.2.3-70-g09d2