6 #include "qualifier.hpp"
7 #if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
8 # include "_swizzle.hpp"
9 #elif GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
10 # include "_swizzle_func.hpp"
16 template<
typename T, qualifier Q>
22 typedef vec<4, T, Q> type;
23 typedef vec<4, bool, Q> bool_type;
27 # if GLM_SILENT_WARNINGS == GLM_ENABLE
28 # if GLM_COMPILER & GLM_COMPILER_GCC
29 # pragma GCC diagnostic push
30 # pragma GCC diagnostic ignored "-Wpedantic"
31 # elif GLM_COMPILER & GLM_COMPILER_CLANG
32 # pragma clang diagnostic push
33 # pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
34 # pragma clang diagnostic ignored "-Wnested-anon-types"
35 # elif GLM_COMPILER & GLM_COMPILER_VC
36 # pragma warning(push)
37 # pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union
41 # if GLM_CONFIG_XYZW_ONLY
43 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
44 GLM_SWIZZLE_GEN_VEC_FROM_VEC4_COMP(T, Q, x, y, z, w)
45 # endif//GLM_CONFIG_SWIZZLE
46 # elif GLM_CONFIG_ANONYMOUS_STRUCT == GLM_ENABLE
49 struct { T x, y, z, w; };
50 struct { T r, g, b, a; };
51 struct { T s, t, p, q; };
53 typename detail::storage<4, T, detail::is_aligned<Q>::value>::type data;
55 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
56 GLM_SWIZZLE4_2_MEMBERS(T, Q, x, y, z, w)
57 GLM_SWIZZLE4_2_MEMBERS(T, Q, r, g, b, a)
58 GLM_SWIZZLE4_2_MEMBERS(T, Q, s, t, p, q)
59 GLM_SWIZZLE4_3_MEMBERS(T, Q, x, y, z, w)
60 GLM_SWIZZLE4_3_MEMBERS(T, Q, r, g, b, a)
61 GLM_SWIZZLE4_3_MEMBERS(T, Q, s, t, p, q)
62 GLM_SWIZZLE4_4_MEMBERS(T, Q, x, y, z, w)
63 GLM_SWIZZLE4_4_MEMBERS(T, Q, r, g, b, a)
64 GLM_SWIZZLE4_4_MEMBERS(T, Q, s, t, p, q)
73 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_FUNCTION
74 GLM_SWIZZLE_GEN_VEC_FROM_VEC4(T, Q)
78 # if GLM_SILENT_WARNINGS == GLM_ENABLE
79 # if GLM_COMPILER & GLM_COMPILER_CLANG
80 # pragma clang diagnostic pop
81 # elif GLM_COMPILER & GLM_COMPILER_GCC
82 # pragma GCC diagnostic pop
83 # elif GLM_COMPILER & GLM_COMPILER_VC
90 typedef length_t length_type;
93 GLM_FUNC_DECL
static GLM_CONSTEXPR length_type
length(){
return 4;}
95 GLM_FUNC_DECL GLM_CONSTEXPR T & operator[](length_type i);
96 GLM_FUNC_DECL GLM_CONSTEXPR T
const& operator[](length_type i)
const;
100 GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR vec() GLM_DEFAULT_CTOR;
101 GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec(vec<4, T, Q> const& v) GLM_DEFAULT;
102 template<qualifier P>
103 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<4, T, P> const& v);
107 GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(T scalar);
108 GLM_FUNC_DECL GLM_CONSTEXPR vec(T x, T y, T z, T w);
112 template<typename U, qualifier P>
113 GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(vec<1, U, P> const& v);
116 template<typename X, typename Y, typename Z, typename W>
117 GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, Y _y, Z _z, W _w);
118 template<typename X, typename Y, typename Z, typename W>
119 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, Z _z, W _w);
120 template<typename X, typename Y, typename Z, typename W>
121 GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, Z _z, W _w);
122 template<typename X, typename Y, typename Z, typename W>
123 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, Z _z, W _w);
124 template<typename X, typename Y, typename Z, typename W>
125 GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, Y _y, vec<1, Z, Q> const& _z, W _w);
126 template<typename X, typename Y, typename Z, typename W>
127 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, vec<1, Z, Q> const& _z, W _w);
128 template<typename X, typename Y, typename Z, typename W>
129 GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, W _w);
130 template<typename X, typename Y, typename Z, typename W>
131 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, W _w);
132 template<typename X, typename Y, typename Z, typename W>
133 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, Z _z, vec<1, W, Q> const& _w);
134 template<typename X, typename Y, typename Z, typename W>
135 GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, Z _z, vec<1, W, Q> const& _w);
136 template<typename X, typename Y, typename Z, typename W>
137 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, Z _z, vec<1, W, Q> const& _w);
138 template<typename X, typename Y, typename Z, typename W>
139 GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, Y _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
140 template<typename X, typename Y, typename Z, typename W>
141 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
142 template<typename X, typename Y, typename Z, typename W>
143 GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
144 template<typename X, typename Y, typename Z, typename W>
145 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
150 template<typename A, typename B, typename C, qualifier P>
151 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, B _z, C _w);
153 template<typename A, typename B, typename C, qualifier P>
154 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, vec<1, B, P> const& _z, C _w);
156 template<typename A, typename B, typename C, qualifier P>
157 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, B _z, vec<1, C, P> const& _w);
159 template<typename A, typename B, typename C, qualifier P>
160 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, vec<1, B, P> const& _z, vec<1, C, P> const& _w);
162 template<typename A, typename B, typename C, qualifier P>
163 GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<2, B, P> const& _yz, C _w);
165 template<typename A, typename B, typename C, qualifier P>
166 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<2, B, P> const& _yz, C _w);
168 template<typename A, typename B, typename C, qualifier P>
169 GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<2, B, P> const& _yz, vec<1, C, P> const& _w);
171 template<typename A, typename B, typename C, qualifier P>
172 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<2, B, P> const& _yz, vec<1, C, P> const& _w);
174 template<typename A, typename B, typename C, qualifier P>
175 GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, B _y, vec<2, C, P> const& _zw);
177 template<typename A, typename B, typename C, qualifier P>
178 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, B _y, vec<2, C, P> const& _zw);
180 template<typename A, typename B, typename C, qualifier P>
181 GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<1, B, P> const& _y, vec<2, C, P> const& _zw);
183 template<typename A, typename B, typename C, qualifier P>
184 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<1, B, P> const& _y, vec<2, C, P> const& _zw);
186 template<typename A, typename B, qualifier P>
187 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<3, A, P> const& _xyz, B _w);
189 template<typename A, typename B, qualifier P>
190 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<3, A, P> const& _xyz, vec<1, B, P> const& _w);
192 template<typename A, typename B, qualifier P>
193 GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<3, B, P> const& _yzw);
195 template<typename A, typename B, qualifier P>
196 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<3, B, P> const& _yzw);
198 template<typename A, typename B, qualifier P>
199 GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, vec<2, B, P> const& _zw);
202 template<typename U, qualifier P>
203 GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<4, U, P> const& v);
206 # if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
207 template<
int E0,
int E1,
int E2,
int E3>
208 GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<4, T, Q, E0, E1, E2, E3>
const& that)
213 template<
int E0,
int E1,
int F0,
int F1>
214 GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<2, T, Q, E0, E1, -1, -2>
const& v, detail::_swizzle<2, T, Q, F0, F1, -1, -2>
const& u)
216 *
this = vec<4, T, Q>(v(), u());
219 template<
int E0,
int E1>
220 GLM_FUNC_DECL GLM_CONSTEXPR vec(T
const& x, T
const& y, detail::_swizzle<2, T, Q, E0, E1, -1, -2>
const& v)
222 *
this = vec<4, T, Q>(x, y, v());
225 template<
int E0,
int E1>
226 GLM_FUNC_DECL GLM_CONSTEXPR vec(T
const& x, detail::_swizzle<2, T, Q, E0, E1, -1, -2>
const& v, T
const& w)
228 *
this = vec<4, T, Q>(x, v(), w);
231 template<
int E0,
int E1>
232 GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<2, T, Q, E0, E1, -1, -2>
const& v, T
const& z, T
const& w)
234 *
this = vec<4, T, Q>(v(), z, w);
237 template<
int E0,
int E1,
int E2>
238 GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<3, T, Q, E0, E1, E2, -1>
const& v, T
const& w)
240 *
this = vec<4, T, Q>(v(), w);
243 template<
int E0,
int E1,
int E2>
244 GLM_FUNC_DECL GLM_CONSTEXPR vec(T
const& x, detail::_swizzle<3, T, Q, E0, E1, E2, -1>
const& v)
246 *
this = vec<4, T, Q>(x, v());
248 # endif//GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
252 GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator=(vec<4, T, Q>
const& v) GLM_DEFAULT;
255 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator=(vec<4, U, Q>
const& v);
257 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(U scalar);
259 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(vec<1, U, Q>
const& v);
261 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(vec<4, U, Q>
const& v);
263 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(U scalar);
265 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(vec<1, U, Q>
const& v);
267 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(vec<4, U, Q>
const& v);
269 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(U scalar);
271 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(vec<1, U, Q>
const& v);
273 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(vec<4, U, Q>
const& v);
275 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(U scalar);
277 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(vec<1, U, Q>
const& v);
279 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(vec<4, U, Q>
const& v);
283 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator++();
284 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator--();
285 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator++(
int);
286 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator--(
int);
291 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator%=(U scalar);
293 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator%=(vec<1, U, Q>
const& v);
295 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator%=(vec<4, U, Q>
const& v);
297 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator&=(U scalar);
299 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator&=(vec<1, U, Q>
const& v);
301 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator&=(vec<4, U, Q>
const& v);
303 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator|=(U scalar);
305 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator|=(vec<1, U, Q>
const& v);
307 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator|=(vec<4, U, Q>
const& v);
309 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator^=(U scalar);
311 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator^=(vec<1, U, Q>
const& v);
313 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator^=(vec<4, U, Q>
const& v);
315 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator<<=(U scalar);
317 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator<<=(vec<1, U, Q>
const& v);
319 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator<<=(vec<4, U, Q>
const& v);
321 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator>>=(U scalar);
323 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator>>=(vec<1, U, Q>
const& v);
325 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator>>=(vec<4, U, Q>
const& v);
330 template<
typename T, qualifier Q>
331 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(vec<4, T, Q>
const& v);
333 template<
typename T, qualifier Q>
334 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(vec<4, T, Q>
const& v);
338 template<
typename T, qualifier Q>
339 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(vec<4, T, Q>
const& v, T scalar);
341 template<
typename T, qualifier Q>
342 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(vec<4, T, Q>
const& v1, vec<1, T, Q>
const& v2);
344 template<
typename T, qualifier Q>
345 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(T scalar, vec<4, T, Q>
const& v);
347 template<
typename T, qualifier Q>
348 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(vec<1, T, Q>
const& v1, vec<4, T, Q>
const& v2);
350 template<
typename T, qualifier Q>
351 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator+(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
353 template<
typename T, qualifier Q>
354 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(vec<4, T, Q>
const& v, T scalar);
356 template<
typename T, qualifier Q>
357 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(vec<4, T, Q>
const& v1, vec<1, T, Q>
const& v2);
359 template<
typename T, qualifier Q>
360 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(T scalar, vec<4, T, Q>
const& v);
362 template<
typename T, qualifier Q>
363 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(vec<1, T, Q>
const& v1, vec<4, T, Q>
const& v2);
365 template<
typename T, qualifier Q>
366 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator-(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
368 template<
typename T, qualifier Q>
369 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator*(vec<4, T, Q>
const& v, T scalar);
371 template<
typename T, qualifier Q>
372 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator*(vec<4, T, Q>
const& v1, vec<1, T, Q>
const& v2);
374 template<
typename T, qualifier Q>
375 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator*(T scalar, vec<4, T, Q>
const& v);
377 template<
typename T, qualifier Q>
378 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator*(vec<1, T, Q>
const& v1, vec<4, T, Q>
const& v2);
380 template<
typename T, qualifier Q>
381 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator*(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
383 template<
typename T, qualifier Q>
384 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator/(vec<4, T, Q>
const& v, T scalar);
386 template<
typename T, qualifier Q>
387 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator/(vec<4, T, Q>
const& v1, vec<1, T, Q>
const& v2);
389 template<
typename T, qualifier Q>
390 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator/(T scalar, vec<4, T, Q>
const& v);
392 template<
typename T, qualifier Q>
393 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator/(vec<1, T, Q>
const& v1, vec<4, T, Q>
const& v2);
395 template<
typename T, qualifier Q>
396 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator/(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
398 template<
typename T, qualifier Q>
399 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator%(vec<4, T, Q>
const& v, T scalar);
401 template<
typename T, qualifier Q>
402 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator%(vec<4, T, Q>
const& v, vec<1, T, Q>
const& scalar);
404 template<
typename T, qualifier Q>
405 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator%(T scalar, vec<4, T, Q>
const& v);
407 template<
typename T, qualifier Q>
408 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator%(vec<1, T, Q>
const& scalar, vec<4, T, Q>
const& v);
410 template<
typename T, qualifier Q>
411 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator%(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
413 template<
typename T, qualifier Q>
414 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator&(vec<4, T, Q>
const& v, T scalar);
416 template<
typename T, qualifier Q>
417 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator&(vec<4, T, Q>
const& v, vec<1, T, Q>
const& scalar);
419 template<
typename T, qualifier Q>
420 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator&(T scalar, vec<4, T, Q>
const& v);
422 template<
typename T, qualifier Q>
423 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator&(vec<1, T, Q>
const& scalar, vec<4, T, Q>
const& v);
425 template<
typename T, qualifier Q>
426 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator&(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
428 template<
typename T, qualifier Q>
429 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator|(vec<4, T, Q>
const& v, T scalar);
431 template<
typename T, qualifier Q>
432 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator|(vec<4, T, Q>
const& v, vec<1, T, Q>
const& scalar);
434 template<
typename T, qualifier Q>
435 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator|(T scalar, vec<4, T, Q>
const& v);
437 template<
typename T, qualifier Q>
438 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator|(vec<1, T, Q>
const& scalar, vec<4, T, Q>
const& v);
440 template<
typename T, qualifier Q>
441 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator|(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
443 template<
typename T, qualifier Q>
444 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator^(vec<4, T, Q>
const& v, T scalar);
446 template<
typename T, qualifier Q>
447 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator^(vec<4, T, Q>
const& v, vec<1, T, Q>
const& scalar);
449 template<
typename T, qualifier Q>
450 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator^(T scalar, vec<4, T, Q>
const& v);
452 template<
typename T, qualifier Q>
453 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator^(vec<1, T, Q>
const& scalar, vec<4, T, Q>
const& v);
455 template<
typename T, qualifier Q>
456 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator^(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
458 template<
typename T, qualifier Q>
459 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator<<(vec<4, T, Q>
const& v, T scalar);
461 template<
typename T, qualifier Q>
462 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator<<(vec<4, T, Q>
const& v, vec<1, T, Q>
const& scalar);
464 template<
typename T, qualifier Q>
465 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator<<(T scalar, vec<4, T, Q>
const& v);
467 template<
typename T, qualifier Q>
468 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator<<(vec<1, T, Q>
const& scalar, vec<4, T, Q>
const& v);
470 template<
typename T, qualifier Q>
471 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator<<(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
473 template<
typename T, qualifier Q>
474 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator>>(vec<4, T, Q>
const& v, T scalar);
476 template<
typename T, qualifier Q>
477 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator>>(vec<4, T, Q>
const& v, vec<1, T, Q>
const& scalar);
479 template<
typename T, qualifier Q>
480 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator>>(T scalar, vec<4, T, Q>
const& v);
482 template<
typename T, qualifier Q>
483 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator>>(vec<1, T, Q>
const& scalar, vec<4, T, Q>
const& v);
485 template<
typename T, qualifier Q>
486 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator>>(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
488 template<
typename T, qualifier Q>
489 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator~(vec<4, T, Q>
const& v);
493 template<
typename T, qualifier Q>
494 GLM_FUNC_DECL GLM_CONSTEXPR
bool operator==(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
496 template<
typename T, qualifier Q>
497 GLM_FUNC_DECL GLM_CONSTEXPR
bool operator!=(vec<4, T, Q>
const& v1, vec<4, T, Q>
const& v2);
499 template<qualifier Q>
500 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, bool, Q> operator&&(vec<4, bool, Q>
const& v1, vec<4, bool, Q>
const& v2);
502 template<qualifier Q>
503 GLM_FUNC_DECL GLM_CONSTEXPR vec<4, bool, Q> operator||(vec<4, bool, Q>
const& v1, vec<4, bool, Q>
const& v2);
506 #ifndef GLM_EXTERNAL_TEMPLATE
507 #include "type_vec4.inl"
508 #endif//GLM_EXTERNAL_TEMPLATE