1 /// @ref core 2 /// @file glm/detail/type_vec4.hpp 3 4 #pragma once 5 6 #include "type_vec.hpp" 7 #if GLM_SWIZZLE == GLM_SWIZZLE_ENABLED 8 # if GLM_HAS_UNRESTRICTED_UNIONS 9 # include "_swizzle.hpp" 10 # else 11 # include "_swizzle_func.hpp" 12 # endif 13 #endif //GLM_SWIZZLE 14 #include <cstddef> 15 16 namespace glm 17 { 18 template <typename T, precision P = defaultp> 19 struct tvec4 20 { 21 // -- Implementation detail -- 22 23 typedef T value_type; 24 typedef tvec4<T, P> type; 25 typedef tvec4<bool, P> bool_type; 26 27 // -- Data -- 28 29 # if GLM_HAS_ONLY_XYZW 30 T x, y, z, w; 31 32 # elif GLM_HAS_ALIGNED_TYPE 33 # if GLM_COMPILER & GLM_COMPILER_GCC 34 # pragma GCC diagnostic push 35 # pragma GCC diagnostic ignored "-Wpedantic" 36 # endif 37 # if GLM_COMPILER & GLM_COMPILER_CLANG 38 # pragma clang diagnostic push 39 # pragma clang diagnostic ignored "-Wgnu-anonymous-struct" 40 # pragma clang diagnostic ignored "-Wnested-anon-types" 41 # endif 42 43 union 44 { 45 struct { T x, y, z, w;}; 46 struct { T r, g, b, a; }; 47 struct { T s, t, p, q; }; 48 49 typename detail::storage<T, sizeof(T) * 4, detail::is_aligned<P>::value>::type data; 50 51 # if GLM_SWIZZLE == GLM_SWIZZLE_ENABLED 52 _GLM_SWIZZLE4_2_MEMBERS(T, P, glm::tvec2, x, y, z, w) 53 _GLM_SWIZZLE4_2_MEMBERS(T, P, glm::tvec2, r, g, b, a) 54 _GLM_SWIZZLE4_2_MEMBERS(T, P, glm::tvec2, s, t, p, q) 55 _GLM_SWIZZLE4_3_MEMBERS(T, P, glm::tvec3, x, y, z, w) 56 _GLM_SWIZZLE4_3_MEMBERS(T, P, glm::tvec3, r, g, b, a) 57 _GLM_SWIZZLE4_3_MEMBERS(T, P, glm::tvec3, s, t, p, q) 58 _GLM_SWIZZLE4_4_MEMBERS(T, P, glm::tvec4, x, y, z, w) 59 _GLM_SWIZZLE4_4_MEMBERS(T, P, glm::tvec4, r, g, b, a) 60 _GLM_SWIZZLE4_4_MEMBERS(T, P, glm::tvec4, s, t, p, q) 61 # endif//GLM_SWIZZLE 62 }; 63 64 # if GLM_COMPILER & GLM_COMPILER_CLANG 65 # pragma clang diagnostic pop 66 # endif 67 # if GLM_COMPILER & GLM_COMPILER_GCC 68 # pragma GCC diagnostic pop 69 # endif 70 # else 71 union { T x, r, s; }; 72 union { T y, g, t; }; 73 union { T z, b, p; }; 74 union { T w, a, q; }; 75 76 # if GLM_SWIZZLE == GLM_SWIZZLE_ENABLED 77 GLM_SWIZZLE_GEN_VEC_FROM_VEC4(T, P, tvec4, tvec2, tvec3, tvec4) 78 # endif//GLM_SWIZZLE 79 # endif 80 81 // -- Component accesses -- 82 83 /// Return the count of components of the vector 84 typedef length_t length_type; lengthglm::tvec485 GLM_FUNC_DECL static length_type length(){return 4;} 86 87 GLM_FUNC_DECL T & operator[](length_type i); 88 GLM_FUNC_DECL T const & operator[](length_type i) const; 89 90 // -- Implicit basic constructors -- 91 92 GLM_FUNC_DECL GLM_CONSTEXPR_SIMD tvec4() GLM_DEFAULT_CTOR; 93 GLM_FUNC_DECL GLM_CONSTEXPR_SIMD tvec4(tvec4<T, P> const& v) GLM_DEFAULT; 94 template <precision Q> 95 GLM_FUNC_DECL GLM_CONSTEXPR_SIMD tvec4(tvec4<T, Q> const& v); 96 97 // -- Explicit basic constructors -- 98 99 GLM_FUNC_DECL GLM_CONSTEXPR_SIMD explicit tvec4(ctor); 100 GLM_FUNC_DECL GLM_CONSTEXPR_SIMD explicit tvec4(T scalar); 101 GLM_FUNC_DECL GLM_CONSTEXPR_SIMD tvec4(T a, T b, T c, T d); 102 103 // -- Conversion scalar constructors -- 104 105 /// Explicit converions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 106 template <typename A, typename B, typename C, typename D> 107 GLM_FUNC_DECL GLM_CONSTEXPR_SIMD tvec4(A a, B b, C c, D d); 108 template <typename A, typename B, typename C, typename D> 109 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(tvec1<A, P> const& a, tvec1<B, P> const& b, tvec1<C, P> const& c, tvec1<D, P> const& d); 110 111 // -- Conversion vector constructors -- 112 113 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 114 template <typename A, typename B, typename C, precision Q> 115 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(tvec2<A, Q> const & a, B b, C c); 116 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 117 template <typename A, typename B, typename C, precision Q> 118 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(tvec2<A, Q> const & a, tvec1<B, Q> const & b, tvec1<C, Q> const & c); 119 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 120 template <typename A, typename B, typename C, precision Q> 121 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(A a, tvec2<B, Q> const & b, C c); 122 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 123 template <typename A, typename B, typename C, precision Q> 124 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(tvec1<A, Q> const & a, tvec2<B, Q> const & b, tvec1<C, Q> const & c); 125 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 126 template <typename A, typename B, typename C, precision Q> 127 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(A a, B b, tvec2<C, Q> const & c); 128 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 129 template <typename A, typename B, typename C, precision Q> 130 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(tvec1<A, Q> const & a, tvec1<B, Q> const & b, tvec2<C, Q> const & c); 131 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 132 template <typename A, typename B, precision Q> 133 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(tvec3<A, Q> const & a, B b); 134 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 135 template <typename A, typename B, precision Q> 136 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(tvec3<A, Q> const & a, tvec1<B, Q> const & b); 137 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 138 template <typename A, typename B, precision Q> 139 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(A a, tvec3<B, Q> const & b); 140 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 141 template <typename A, typename B, precision Q> 142 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(tvec1<A, Q> const & a, tvec3<B, Q> const & b); 143 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 144 template <typename A, typename B, precision Q> 145 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec4(tvec2<A, Q> const & a, tvec2<B, Q> const & b); 146 147 /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) 148 template <typename U, precision Q> 149 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR GLM_EXPLICIT tvec4(tvec4<U, Q> const& v); 150 151 // -- Swizzle constructors -- 152 # if GLM_HAS_UNRESTRICTED_UNIONS && (GLM_SWIZZLE == GLM_SWIZZLE_ENABLED) 153 template <int E0, int E1, int E2, int E3> tvec4glm::tvec4154 GLM_FUNC_DECL tvec4(detail::_swizzle<4, T, P, glm::tvec4, E0, E1, E2, E3> const & that) 155 { 156 *this = that(); 157 } 158 159 template <int E0, int E1, int F0, int F1> tvec4glm::tvec4160 GLM_FUNC_DECL tvec4(detail::_swizzle<2, T, P, glm::tvec2, E0, E1, -1, -2> const & v, detail::_swizzle<2, T, P, glm::tvec2, F0, F1, -1, -2> const & u) 161 { 162 *this = tvec4<T, P>(v(), u()); 163 } 164 165 template <int E0, int E1> tvec4glm::tvec4166 GLM_FUNC_DECL tvec4(T const & x, T const & y, detail::_swizzle<2, T, P, glm::tvec2, E0, E1, -1, -2> const & v) 167 { 168 *this = tvec4<T, P>(x, y, v()); 169 } 170 171 template <int E0, int E1> tvec4glm::tvec4172 GLM_FUNC_DECL tvec4(T const & x, detail::_swizzle<2, T, P, glm::tvec2, E0, E1, -1, -2> const & v, T const & w) 173 { 174 *this = tvec4<T, P>(x, v(), w); 175 } 176 177 template <int E0, int E1> tvec4glm::tvec4178 GLM_FUNC_DECL tvec4(detail::_swizzle<2, T, P, glm::tvec2, E0, E1, -1, -2> const & v, T const & z, T const & w) 179 { 180 *this = tvec4<T, P>(v(), z, w); 181 } 182 183 template <int E0, int E1, int E2> tvec4glm::tvec4184 GLM_FUNC_DECL tvec4(detail::_swizzle<3, T, P, glm::tvec3, E0, E1, E2, -1> const & v, T const & w) 185 { 186 *this = tvec4<T, P>(v(), w); 187 } 188 189 template <int E0, int E1, int E2> tvec4glm::tvec4190 GLM_FUNC_DECL tvec4(T const & x, detail::_swizzle<3, T, P, glm::tvec3, E0, E1, E2, -1> const & v) 191 { 192 *this = tvec4<T, P>(x, v()); 193 } 194 # endif// GLM_HAS_UNRESTRICTED_UNIONS && (GLM_SWIZZLE == GLM_SWIZZLE_ENABLED) 195 196 // -- Unary arithmetic operators -- 197 198 GLM_FUNC_DECL tvec4<T, P> & operator=(tvec4<T, P> const & v) GLM_DEFAULT; 199 200 template <typename U> 201 GLM_FUNC_DECL tvec4<T, P> & operator=(tvec4<U, P> const & v); 202 template <typename U> 203 GLM_FUNC_DECL tvec4<T, P> & operator+=(U scalar); 204 template <typename U> 205 GLM_FUNC_DECL tvec4<T, P> & operator+=(tvec1<U, P> const & v); 206 template <typename U> 207 GLM_FUNC_DECL tvec4<T, P> & operator+=(tvec4<U, P> const & v); 208 template <typename U> 209 GLM_FUNC_DECL tvec4<T, P> & operator-=(U scalar); 210 template <typename U> 211 GLM_FUNC_DECL tvec4<T, P> & operator-=(tvec1<U, P> const & v); 212 template <typename U> 213 GLM_FUNC_DECL tvec4<T, P> & operator-=(tvec4<U, P> const & v); 214 template <typename U> 215 GLM_FUNC_DECL tvec4<T, P> & operator*=(U scalar); 216 template <typename U> 217 GLM_FUNC_DECL tvec4<T, P> & operator*=(tvec1<U, P> const& v); 218 template <typename U> 219 GLM_FUNC_DECL tvec4<T, P> & operator*=(tvec4<U, P> const& v); 220 template <typename U> 221 GLM_FUNC_DECL tvec4<T, P> & operator/=(U scalar); 222 template <typename U> 223 GLM_FUNC_DECL tvec4<T, P> & operator/=(tvec1<U, P> const & v); 224 template <typename U> 225 GLM_FUNC_DECL tvec4<T, P> & operator/=(tvec4<U, P> const & v); 226 227 // -- Increment and decrement operators -- 228 229 GLM_FUNC_DECL tvec4<T, P> & operator++(); 230 GLM_FUNC_DECL tvec4<T, P> & operator--(); 231 GLM_FUNC_DECL tvec4<T, P> operator++(int); 232 GLM_FUNC_DECL tvec4<T, P> operator--(int); 233 234 // -- Unary bit operators -- 235 236 template <typename U> 237 GLM_FUNC_DECL tvec4<T, P> & operator%=(U scalar); 238 template <typename U> 239 GLM_FUNC_DECL tvec4<T, P> & operator%=(tvec1<U, P> const & v); 240 template <typename U> 241 GLM_FUNC_DECL tvec4<T, P> & operator%=(tvec4<U, P> const & v); 242 template <typename U> 243 GLM_FUNC_DECL tvec4<T, P> & operator&=(U scalar); 244 template <typename U> 245 GLM_FUNC_DECL tvec4<T, P> & operator&=(tvec1<U, P> const & v); 246 template <typename U> 247 GLM_FUNC_DECL tvec4<T, P> & operator&=(tvec4<U, P> const & v); 248 template <typename U> 249 GLM_FUNC_DECL tvec4<T, P> & operator|=(U scalar); 250 template <typename U> 251 GLM_FUNC_DECL tvec4<T, P> & operator|=(tvec1<U, P> const & v); 252 template <typename U> 253 GLM_FUNC_DECL tvec4<T, P> & operator|=(tvec4<U, P> const & v); 254 template <typename U> 255 GLM_FUNC_DECL tvec4<T, P> & operator^=(U scalar); 256 template <typename U> 257 GLM_FUNC_DECL tvec4<T, P> & operator^=(tvec1<U, P> const & v); 258 template <typename U> 259 GLM_FUNC_DECL tvec4<T, P> & operator^=(tvec4<U, P> const & v); 260 template <typename U> 261 GLM_FUNC_DECL tvec4<T, P> & operator<<=(U scalar); 262 template <typename U> 263 GLM_FUNC_DECL tvec4<T, P> & operator<<=(tvec1<U, P> const & v); 264 template <typename U> 265 GLM_FUNC_DECL tvec4<T, P> & operator<<=(tvec4<U, P> const & v); 266 template <typename U> 267 GLM_FUNC_DECL tvec4<T, P> & operator>>=(U scalar); 268 template <typename U> 269 GLM_FUNC_DECL tvec4<T, P> & operator>>=(tvec1<U, P> const & v); 270 template <typename U> 271 GLM_FUNC_DECL tvec4<T, P> & operator>>=(tvec4<U, P> const & v); 272 }; 273 274 // -- Unary operators -- 275 276 template <typename T, precision P> 277 GLM_FUNC_DECL tvec4<T, P> operator+(tvec4<T, P> const & v); 278 279 template <typename T, precision P> 280 GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v); 281 282 // -- Binary operators -- 283 284 template <typename T, precision P> 285 GLM_FUNC_DECL tvec4<T, P> operator+(tvec4<T, P> const & v, T scalar); 286 287 template <typename T, precision P> 288 GLM_FUNC_DECL tvec4<T, P> operator+(tvec4<T, P> const & v1, tvec1<T, P> const & v2); 289 290 template <typename T, precision P> 291 GLM_FUNC_DECL tvec4<T, P> operator+(T scalar, tvec4<T, P> const & v); 292 293 template <typename T, precision P> 294 GLM_FUNC_DECL tvec4<T, P> operator+(tvec1<T, P> const & v1, tvec4<T, P> const & v2); 295 296 template <typename T, precision P> 297 GLM_FUNC_DECL tvec4<T, P> operator+(tvec4<T, P> const & v1, tvec4<T, P> const & v2); 298 299 template <typename T, precision P> 300 GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v, T scalar); 301 302 template <typename T, precision P> 303 GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v1, tvec1<T, P> const & v2); 304 305 template <typename T, precision P> 306 GLM_FUNC_DECL tvec4<T, P> operator-(T scalar, tvec4<T, P> const & v); 307 308 template <typename T, precision P> 309 GLM_FUNC_DECL tvec4<T, P> operator-(tvec1<T, P> const & v1, tvec4<T, P> const & v2); 310 311 template <typename T, precision P> 312 GLM_FUNC_DECL tvec4<T, P> operator-(tvec4<T, P> const & v1, tvec4<T, P> const & v2); 313 314 template <typename T, precision P> 315 GLM_FUNC_DECL tvec4<T, P> operator*(tvec4<T, P> const & v, T scalar); 316 317 template <typename T, precision P> 318 GLM_FUNC_DECL tvec4<T, P> operator*(tvec4<T, P> const & v1, tvec1<T, P> const & v2); 319 320 template <typename T, precision P> 321 GLM_FUNC_DECL tvec4<T, P> operator*(T scalar, tvec4<T, P> const & v); 322 323 template <typename T, precision P> 324 GLM_FUNC_DECL tvec4<T, P> operator*(tvec1<T, P> const & v1, tvec4<T, P> const & v2); 325 326 template <typename T, precision P> 327 GLM_FUNC_DECL tvec4<T, P> operator*(tvec4<T, P> const & v1, tvec4<T, P> const & v2); 328 329 template <typename T, precision P> 330 GLM_FUNC_DECL tvec4<T, P> operator/(tvec4<T, P> const & v, T scalar); 331 332 template <typename T, precision P> 333 GLM_FUNC_DECL tvec4<T, P> operator/(tvec4<T, P> const & v1, tvec1<T, P> const & v2); 334 335 template <typename T, precision P> 336 GLM_FUNC_DECL tvec4<T, P> operator/(T scalar, tvec4<T, P> const & v); 337 338 template <typename T, precision P> 339 GLM_FUNC_DECL tvec4<T, P> operator/(tvec1<T, P> const & v1, tvec4<T, P> const & v2); 340 341 template <typename T, precision P> 342 GLM_FUNC_DECL tvec4<T, P> operator/(tvec4<T, P> const & v1, tvec4<T, P> const & v2); 343 344 template <typename T, precision P> 345 GLM_FUNC_DECL tvec4<T, P> operator%(tvec4<T, P> const & v, T scalar); 346 347 template <typename T, precision P> 348 GLM_FUNC_DECL tvec4<T, P> operator%(tvec4<T, P> const & v, tvec1<T, P> const & scalar); 349 350 template <typename T, precision P> 351 GLM_FUNC_DECL tvec4<T, P> operator%(T scalar, tvec4<T, P> const & v); 352 353 template <typename T, precision P> 354 GLM_FUNC_DECL tvec4<T, P> operator%(tvec1<T, P> const & scalar, tvec4<T, P> const & v); 355 356 template <typename T, precision P> 357 GLM_FUNC_DECL tvec4<T, P> operator%(tvec4<T, P> const & v1, tvec4<T, P> const & v2); 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 & scalar); 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 & scalar, 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 & scalar); 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 & scalar, 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 & scalar); 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 & scalar, 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 & scalar); 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 & scalar, 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 tvec4<T, P> operator>>(tvec4<T, P> const & v, T scalar); 421 422 template <typename T, precision P> 423 GLM_FUNC_DECL tvec4<T, P> operator>>(tvec4<T, P> const & v, tvec1<T, P> const & scalar); 424 425 template <typename T, precision P> 426 GLM_FUNC_DECL tvec4<T, P> operator>>(T scalar, tvec4<T, P> const & v); 427 428 template <typename T, precision P> 429 GLM_FUNC_DECL tvec4<T, P> operator>>(tvec1<T, P> const & scalar, tvec4<T, P> const & v); 430 431 template <typename T, precision P> 432 GLM_FUNC_DECL tvec4<T, P> operator>>(tvec4<T, P> const & v1, tvec4<T, P> const & v2); 433 434 template <typename T, precision P> 435 GLM_FUNC_DECL tvec4<T, P> operator~(tvec4<T, P> const & v); 436 437 // -- Boolean operators -- 438 439 template <typename T, precision P> 440 GLM_FUNC_DECL bool operator==(tvec4<T, P> const & v1, tvec4<T, P> const & v2); 441 442 template <typename T, precision P> 443 GLM_FUNC_DECL bool operator!=(tvec4<T, P> const & v1, tvec4<T, P> const & v2); 444 445 template <precision P> 446 GLM_FUNC_DECL tvec4<bool, P> operator&&(tvec4<bool, P> const & v1, tvec4<bool, P> const & v2); 447 448 template <precision P> 449 GLM_FUNC_DECL tvec4<bool, P> operator||(tvec4<bool, P> const & v1, tvec4<bool, P> const & v2); 450 }//namespace glm 451 452 #ifndef GLM_EXTERNAL_TEMPLATE 453 #include "type_vec4.inl" 454 #endif//GLM_EXTERNAL_TEMPLATE 455