A game about forced loneliness, made by TACStudios
1//------------------------------------------------------------------------------ 2// <auto-generated> 3// This code was generated by a tool. 4// 5// Changes to this file may cause incorrect behavior and will be lost if 6// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. 7// </auto-generated> 8//------------------------------------------------------------------------------ 9using System; 10using System.Runtime.CompilerServices; 11using System.Diagnostics; 12using Unity.IL2CPP.CompilerServices; 13 14#pragma warning disable 0660, 0661 15 16namespace Unity.Mathematics 17{ 18 /// <summary>A 4 component vector of floats.</summary> 19 [DebuggerTypeProxy(typeof(float4.DebuggerProxy))] 20 [System.Serializable] 21 [Il2CppEagerStaticClassConstruction] 22 public partial struct float4 : System.IEquatable<float4>, IFormattable 23 { 24 /// <summary>x component of the vector.</summary> 25 public float x; 26 /// <summary>y component of the vector.</summary> 27 public float y; 28 /// <summary>z component of the vector.</summary> 29 public float z; 30 /// <summary>w component of the vector.</summary> 31 public float w; 32 33 /// <summary>float4 zero value.</summary> 34 public static readonly float4 zero; 35 36 /// <summary>Constructs a float4 vector from four float values.</summary> 37 /// <param name="x">The constructed vector's x component will be set to this value.</param> 38 /// <param name="y">The constructed vector's y component will be set to this value.</param> 39 /// <param name="z">The constructed vector's z component will be set to this value.</param> 40 /// <param name="w">The constructed vector's w component will be set to this value.</param> 41 [MethodImpl(MethodImplOptions.AggressiveInlining)] 42 public float4(float x, float y, float z, float w) 43 { 44 this.x = x; 45 this.y = y; 46 this.z = z; 47 this.w = w; 48 } 49 50 /// <summary>Constructs a float4 vector from two float values and a float2 vector.</summary> 51 /// <param name="x">The constructed vector's x component will be set to this value.</param> 52 /// <param name="y">The constructed vector's y component will be set to this value.</param> 53 /// <param name="zw">The constructed vector's zw components will be set to this value.</param> 54 [MethodImpl(MethodImplOptions.AggressiveInlining)] 55 public float4(float x, float y, float2 zw) 56 { 57 this.x = x; 58 this.y = y; 59 this.z = zw.x; 60 this.w = zw.y; 61 } 62 63 /// <summary>Constructs a float4 vector from a float value, a float2 vector and a float value.</summary> 64 /// <param name="x">The constructed vector's x component will be set to this value.</param> 65 /// <param name="yz">The constructed vector's yz components will be set to this value.</param> 66 /// <param name="w">The constructed vector's w component will be set to this value.</param> 67 [MethodImpl(MethodImplOptions.AggressiveInlining)] 68 public float4(float x, float2 yz, float w) 69 { 70 this.x = x; 71 this.y = yz.x; 72 this.z = yz.y; 73 this.w = w; 74 } 75 76 /// <summary>Constructs a float4 vector from a float value and a float3 vector.</summary> 77 /// <param name="x">The constructed vector's x component will be set to this value.</param> 78 /// <param name="yzw">The constructed vector's yzw components will be set to this value.</param> 79 [MethodImpl(MethodImplOptions.AggressiveInlining)] 80 public float4(float x, float3 yzw) 81 { 82 this.x = x; 83 this.y = yzw.x; 84 this.z = yzw.y; 85 this.w = yzw.z; 86 } 87 88 /// <summary>Constructs a float4 vector from a float2 vector and two float values.</summary> 89 /// <param name="xy">The constructed vector's xy components will be set to this value.</param> 90 /// <param name="z">The constructed vector's z component will be set to this value.</param> 91 /// <param name="w">The constructed vector's w component will be set to this value.</param> 92 [MethodImpl(MethodImplOptions.AggressiveInlining)] 93 public float4(float2 xy, float z, float w) 94 { 95 this.x = xy.x; 96 this.y = xy.y; 97 this.z = z; 98 this.w = w; 99 } 100 101 /// <summary>Constructs a float4 vector from two float2 vectors.</summary> 102 /// <param name="xy">The constructed vector's xy components will be set to this value.</param> 103 /// <param name="zw">The constructed vector's zw components will be set to this value.</param> 104 [MethodImpl(MethodImplOptions.AggressiveInlining)] 105 public float4(float2 xy, float2 zw) 106 { 107 this.x = xy.x; 108 this.y = xy.y; 109 this.z = zw.x; 110 this.w = zw.y; 111 } 112 113 /// <summary>Constructs a float4 vector from a float3 vector and a float value.</summary> 114 /// <param name="xyz">The constructed vector's xyz components will be set to this value.</param> 115 /// <param name="w">The constructed vector's w component will be set to this value.</param> 116 [MethodImpl(MethodImplOptions.AggressiveInlining)] 117 public float4(float3 xyz, float w) 118 { 119 this.x = xyz.x; 120 this.y = xyz.y; 121 this.z = xyz.z; 122 this.w = w; 123 } 124 125 /// <summary>Constructs a float4 vector from a float4 vector.</summary> 126 /// <param name="xyzw">The constructed vector's xyzw components will be set to this value.</param> 127 [MethodImpl(MethodImplOptions.AggressiveInlining)] 128 public float4(float4 xyzw) 129 { 130 this.x = xyzw.x; 131 this.y = xyzw.y; 132 this.z = xyzw.z; 133 this.w = xyzw.w; 134 } 135 136 /// <summary>Constructs a float4 vector from a single float value by assigning it to every component.</summary> 137 /// <param name="v">float to convert to float4</param> 138 [MethodImpl(MethodImplOptions.AggressiveInlining)] 139 public float4(float v) 140 { 141 this.x = v; 142 this.y = v; 143 this.z = v; 144 this.w = v; 145 } 146 147 /// <summary>Constructs a float4 vector from a single bool value by converting it to float and assigning it to every component.</summary> 148 /// <param name="v">bool to convert to float4</param> 149 [MethodImpl(MethodImplOptions.AggressiveInlining)] 150 public float4(bool v) 151 { 152 this.x = v ? 1.0f : 0.0f; 153 this.y = v ? 1.0f : 0.0f; 154 this.z = v ? 1.0f : 0.0f; 155 this.w = v ? 1.0f : 0.0f; 156 } 157 158 /// <summary>Constructs a float4 vector from a bool4 vector by componentwise conversion.</summary> 159 /// <param name="v">bool4 to convert to float4</param> 160 [MethodImpl(MethodImplOptions.AggressiveInlining)] 161 public float4(bool4 v) 162 { 163 this.x = v.x ? 1.0f : 0.0f; 164 this.y = v.y ? 1.0f : 0.0f; 165 this.z = v.z ? 1.0f : 0.0f; 166 this.w = v.w ? 1.0f : 0.0f; 167 } 168 169 /// <summary>Constructs a float4 vector from a single int value by converting it to float and assigning it to every component.</summary> 170 /// <param name="v">int to convert to float4</param> 171 [MethodImpl(MethodImplOptions.AggressiveInlining)] 172 public float4(int v) 173 { 174 this.x = v; 175 this.y = v; 176 this.z = v; 177 this.w = v; 178 } 179 180 /// <summary>Constructs a float4 vector from a int4 vector by componentwise conversion.</summary> 181 /// <param name="v">int4 to convert to float4</param> 182 [MethodImpl(MethodImplOptions.AggressiveInlining)] 183 public float4(int4 v) 184 { 185 this.x = v.x; 186 this.y = v.y; 187 this.z = v.z; 188 this.w = v.w; 189 } 190 191 /// <summary>Constructs a float4 vector from a single uint value by converting it to float and assigning it to every component.</summary> 192 /// <param name="v">uint to convert to float4</param> 193 [MethodImpl(MethodImplOptions.AggressiveInlining)] 194 public float4(uint v) 195 { 196 this.x = v; 197 this.y = v; 198 this.z = v; 199 this.w = v; 200 } 201 202 /// <summary>Constructs a float4 vector from a uint4 vector by componentwise conversion.</summary> 203 /// <param name="v">uint4 to convert to float4</param> 204 [MethodImpl(MethodImplOptions.AggressiveInlining)] 205 public float4(uint4 v) 206 { 207 this.x = v.x; 208 this.y = v.y; 209 this.z = v.z; 210 this.w = v.w; 211 } 212 213 /// <summary>Constructs a float4 vector from a single half value by converting it to float and assigning it to every component.</summary> 214 /// <param name="v">half to convert to float4</param> 215 [MethodImpl(MethodImplOptions.AggressiveInlining)] 216 public float4(half v) 217 { 218 this.x = v; 219 this.y = v; 220 this.z = v; 221 this.w = v; 222 } 223 224 /// <summary>Constructs a float4 vector from a half4 vector by componentwise conversion.</summary> 225 /// <param name="v">half4 to convert to float4</param> 226 [MethodImpl(MethodImplOptions.AggressiveInlining)] 227 public float4(half4 v) 228 { 229 this.x = v.x; 230 this.y = v.y; 231 this.z = v.z; 232 this.w = v.w; 233 } 234 235 /// <summary>Constructs a float4 vector from a single double value by converting it to float and assigning it to every component.</summary> 236 /// <param name="v">double to convert to float4</param> 237 [MethodImpl(MethodImplOptions.AggressiveInlining)] 238 public float4(double v) 239 { 240 this.x = (float)v; 241 this.y = (float)v; 242 this.z = (float)v; 243 this.w = (float)v; 244 } 245 246 /// <summary>Constructs a float4 vector from a double4 vector by componentwise conversion.</summary> 247 /// <param name="v">double4 to convert to float4</param> 248 [MethodImpl(MethodImplOptions.AggressiveInlining)] 249 public float4(double4 v) 250 { 251 this.x = (float)v.x; 252 this.y = (float)v.y; 253 this.z = (float)v.z; 254 this.w = (float)v.w; 255 } 256 257 258 /// <summary>Implicitly converts a single float value to a float4 vector by assigning it to every component.</summary> 259 /// <param name="v">float to convert to float4</param> 260 /// <returns>Converted value.</returns> 261 [MethodImpl(MethodImplOptions.AggressiveInlining)] 262 public static implicit operator float4(float v) { return new float4(v); } 263 264 /// <summary>Explicitly converts a single bool value to a float4 vector by converting it to float and assigning it to every component.</summary> 265 /// <param name="v">bool to convert to float4</param> 266 /// <returns>Converted value.</returns> 267 [MethodImpl(MethodImplOptions.AggressiveInlining)] 268 public static explicit operator float4(bool v) { return new float4(v); } 269 270 /// <summary>Explicitly converts a bool4 vector to a float4 vector by componentwise conversion.</summary> 271 /// <param name="v">bool4 to convert to float4</param> 272 /// <returns>Converted value.</returns> 273 [MethodImpl(MethodImplOptions.AggressiveInlining)] 274 public static explicit operator float4(bool4 v) { return new float4(v); } 275 276 /// <summary>Implicitly converts a single int value to a float4 vector by converting it to float and assigning it to every component.</summary> 277 /// <param name="v">int to convert to float4</param> 278 /// <returns>Converted value.</returns> 279 [MethodImpl(MethodImplOptions.AggressiveInlining)] 280 public static implicit operator float4(int v) { return new float4(v); } 281 282 /// <summary>Implicitly converts a int4 vector to a float4 vector by componentwise conversion.</summary> 283 /// <param name="v">int4 to convert to float4</param> 284 /// <returns>Converted value.</returns> 285 [MethodImpl(MethodImplOptions.AggressiveInlining)] 286 public static implicit operator float4(int4 v) { return new float4(v); } 287 288 /// <summary>Implicitly converts a single uint value to a float4 vector by converting it to float and assigning it to every component.</summary> 289 /// <param name="v">uint to convert to float4</param> 290 /// <returns>Converted value.</returns> 291 [MethodImpl(MethodImplOptions.AggressiveInlining)] 292 public static implicit operator float4(uint v) { return new float4(v); } 293 294 /// <summary>Implicitly converts a uint4 vector to a float4 vector by componentwise conversion.</summary> 295 /// <param name="v">uint4 to convert to float4</param> 296 /// <returns>Converted value.</returns> 297 [MethodImpl(MethodImplOptions.AggressiveInlining)] 298 public static implicit operator float4(uint4 v) { return new float4(v); } 299 300 /// <summary>Implicitly converts a single half value to a float4 vector by converting it to float and assigning it to every component.</summary> 301 /// <param name="v">half to convert to float4</param> 302 /// <returns>Converted value.</returns> 303 [MethodImpl(MethodImplOptions.AggressiveInlining)] 304 public static implicit operator float4(half v) { return new float4(v); } 305 306 /// <summary>Implicitly converts a half4 vector to a float4 vector by componentwise conversion.</summary> 307 /// <param name="v">half4 to convert to float4</param> 308 /// <returns>Converted value.</returns> 309 [MethodImpl(MethodImplOptions.AggressiveInlining)] 310 public static implicit operator float4(half4 v) { return new float4(v); } 311 312 /// <summary>Explicitly converts a single double value to a float4 vector by converting it to float and assigning it to every component.</summary> 313 /// <param name="v">double to convert to float4</param> 314 /// <returns>Converted value.</returns> 315 [MethodImpl(MethodImplOptions.AggressiveInlining)] 316 public static explicit operator float4(double v) { return new float4(v); } 317 318 /// <summary>Explicitly converts a double4 vector to a float4 vector by componentwise conversion.</summary> 319 /// <param name="v">double4 to convert to float4</param> 320 /// <returns>Converted value.</returns> 321 [MethodImpl(MethodImplOptions.AggressiveInlining)] 322 public static explicit operator float4(double4 v) { return new float4(v); } 323 324 325 /// <summary>Returns the result of a componentwise multiplication operation on two float4 vectors.</summary> 326 /// <param name="lhs">Left hand side float4 to use to compute componentwise multiplication.</param> 327 /// <param name="rhs">Right hand side float4 to use to compute componentwise multiplication.</param> 328 /// <returns>float4 result of the componentwise multiplication.</returns> 329 [MethodImpl(MethodImplOptions.AggressiveInlining)] 330 public static float4 operator * (float4 lhs, float4 rhs) { return new float4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } 331 332 /// <summary>Returns the result of a componentwise multiplication operation on a float4 vector and a float value.</summary> 333 /// <param name="lhs">Left hand side float4 to use to compute componentwise multiplication.</param> 334 /// <param name="rhs">Right hand side float to use to compute componentwise multiplication.</param> 335 /// <returns>float4 result of the componentwise multiplication.</returns> 336 [MethodImpl(MethodImplOptions.AggressiveInlining)] 337 public static float4 operator * (float4 lhs, float rhs) { return new float4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } 338 339 /// <summary>Returns the result of a componentwise multiplication operation on a float value and a float4 vector.</summary> 340 /// <param name="lhs">Left hand side float to use to compute componentwise multiplication.</param> 341 /// <param name="rhs">Right hand side float4 to use to compute componentwise multiplication.</param> 342 /// <returns>float4 result of the componentwise multiplication.</returns> 343 [MethodImpl(MethodImplOptions.AggressiveInlining)] 344 public static float4 operator * (float lhs, float4 rhs) { return new float4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } 345 346 347 /// <summary>Returns the result of a componentwise addition operation on two float4 vectors.</summary> 348 /// <param name="lhs">Left hand side float4 to use to compute componentwise addition.</param> 349 /// <param name="rhs">Right hand side float4 to use to compute componentwise addition.</param> 350 /// <returns>float4 result of the componentwise addition.</returns> 351 [MethodImpl(MethodImplOptions.AggressiveInlining)] 352 public static float4 operator + (float4 lhs, float4 rhs) { return new float4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } 353 354 /// <summary>Returns the result of a componentwise addition operation on a float4 vector and a float value.</summary> 355 /// <param name="lhs">Left hand side float4 to use to compute componentwise addition.</param> 356 /// <param name="rhs">Right hand side float to use to compute componentwise addition.</param> 357 /// <returns>float4 result of the componentwise addition.</returns> 358 [MethodImpl(MethodImplOptions.AggressiveInlining)] 359 public static float4 operator + (float4 lhs, float rhs) { return new float4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } 360 361 /// <summary>Returns the result of a componentwise addition operation on a float value and a float4 vector.</summary> 362 /// <param name="lhs">Left hand side float to use to compute componentwise addition.</param> 363 /// <param name="rhs">Right hand side float4 to use to compute componentwise addition.</param> 364 /// <returns>float4 result of the componentwise addition.</returns> 365 [MethodImpl(MethodImplOptions.AggressiveInlining)] 366 public static float4 operator + (float lhs, float4 rhs) { return new float4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } 367 368 369 /// <summary>Returns the result of a componentwise subtraction operation on two float4 vectors.</summary> 370 /// <param name="lhs">Left hand side float4 to use to compute componentwise subtraction.</param> 371 /// <param name="rhs">Right hand side float4 to use to compute componentwise subtraction.</param> 372 /// <returns>float4 result of the componentwise subtraction.</returns> 373 [MethodImpl(MethodImplOptions.AggressiveInlining)] 374 public static float4 operator - (float4 lhs, float4 rhs) { return new float4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } 375 376 /// <summary>Returns the result of a componentwise subtraction operation on a float4 vector and a float value.</summary> 377 /// <param name="lhs">Left hand side float4 to use to compute componentwise subtraction.</param> 378 /// <param name="rhs">Right hand side float to use to compute componentwise subtraction.</param> 379 /// <returns>float4 result of the componentwise subtraction.</returns> 380 [MethodImpl(MethodImplOptions.AggressiveInlining)] 381 public static float4 operator - (float4 lhs, float rhs) { return new float4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } 382 383 /// <summary>Returns the result of a componentwise subtraction operation on a float value and a float4 vector.</summary> 384 /// <param name="lhs">Left hand side float to use to compute componentwise subtraction.</param> 385 /// <param name="rhs">Right hand side float4 to use to compute componentwise subtraction.</param> 386 /// <returns>float4 result of the componentwise subtraction.</returns> 387 [MethodImpl(MethodImplOptions.AggressiveInlining)] 388 public static float4 operator - (float lhs, float4 rhs) { return new float4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } 389 390 391 /// <summary>Returns the result of a componentwise division operation on two float4 vectors.</summary> 392 /// <param name="lhs">Left hand side float4 to use to compute componentwise division.</param> 393 /// <param name="rhs">Right hand side float4 to use to compute componentwise division.</param> 394 /// <returns>float4 result of the componentwise division.</returns> 395 [MethodImpl(MethodImplOptions.AggressiveInlining)] 396 public static float4 operator / (float4 lhs, float4 rhs) { return new float4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } 397 398 /// <summary>Returns the result of a componentwise division operation on a float4 vector and a float value.</summary> 399 /// <param name="lhs">Left hand side float4 to use to compute componentwise division.</param> 400 /// <param name="rhs">Right hand side float to use to compute componentwise division.</param> 401 /// <returns>float4 result of the componentwise division.</returns> 402 [MethodImpl(MethodImplOptions.AggressiveInlining)] 403 public static float4 operator / (float4 lhs, float rhs) { return new float4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } 404 405 /// <summary>Returns the result of a componentwise division operation on a float value and a float4 vector.</summary> 406 /// <param name="lhs">Left hand side float to use to compute componentwise division.</param> 407 /// <param name="rhs">Right hand side float4 to use to compute componentwise division.</param> 408 /// <returns>float4 result of the componentwise division.</returns> 409 [MethodImpl(MethodImplOptions.AggressiveInlining)] 410 public static float4 operator / (float lhs, float4 rhs) { return new float4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } 411 412 413 /// <summary>Returns the result of a componentwise modulus operation on two float4 vectors.</summary> 414 /// <param name="lhs">Left hand side float4 to use to compute componentwise modulus.</param> 415 /// <param name="rhs">Right hand side float4 to use to compute componentwise modulus.</param> 416 /// <returns>float4 result of the componentwise modulus.</returns> 417 [MethodImpl(MethodImplOptions.AggressiveInlining)] 418 public static float4 operator % (float4 lhs, float4 rhs) { return new float4 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z, lhs.w % rhs.w); } 419 420 /// <summary>Returns the result of a componentwise modulus operation on a float4 vector and a float value.</summary> 421 /// <param name="lhs">Left hand side float4 to use to compute componentwise modulus.</param> 422 /// <param name="rhs">Right hand side float to use to compute componentwise modulus.</param> 423 /// <returns>float4 result of the componentwise modulus.</returns> 424 [MethodImpl(MethodImplOptions.AggressiveInlining)] 425 public static float4 operator % (float4 lhs, float rhs) { return new float4 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs, lhs.w % rhs); } 426 427 /// <summary>Returns the result of a componentwise modulus operation on a float value and a float4 vector.</summary> 428 /// <param name="lhs">Left hand side float to use to compute componentwise modulus.</param> 429 /// <param name="rhs">Right hand side float4 to use to compute componentwise modulus.</param> 430 /// <returns>float4 result of the componentwise modulus.</returns> 431 [MethodImpl(MethodImplOptions.AggressiveInlining)] 432 public static float4 operator % (float lhs, float4 rhs) { return new float4 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z, lhs % rhs.w); } 433 434 435 /// <summary>Returns the result of a componentwise increment operation on a float4 vector.</summary> 436 /// <param name="val">Value to use when computing the componentwise increment.</param> 437 /// <returns>float4 result of the componentwise increment.</returns> 438 [MethodImpl(MethodImplOptions.AggressiveInlining)] 439 public static float4 operator ++ (float4 val) { return new float4 (++val.x, ++val.y, ++val.z, ++val.w); } 440 441 442 /// <summary>Returns the result of a componentwise decrement operation on a float4 vector.</summary> 443 /// <param name="val">Value to use when computing the componentwise decrement.</param> 444 /// <returns>float4 result of the componentwise decrement.</returns> 445 [MethodImpl(MethodImplOptions.AggressiveInlining)] 446 public static float4 operator -- (float4 val) { return new float4 (--val.x, --val.y, --val.z, --val.w); } 447 448 449 /// <summary>Returns the result of a componentwise less than operation on two float4 vectors.</summary> 450 /// <param name="lhs">Left hand side float4 to use to compute componentwise less than.</param> 451 /// <param name="rhs">Right hand side float4 to use to compute componentwise less than.</param> 452 /// <returns>bool4 result of the componentwise less than.</returns> 453 [MethodImpl(MethodImplOptions.AggressiveInlining)] 454 public static bool4 operator < (float4 lhs, float4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } 455 456 /// <summary>Returns the result of a componentwise less than operation on a float4 vector and a float value.</summary> 457 /// <param name="lhs">Left hand side float4 to use to compute componentwise less than.</param> 458 /// <param name="rhs">Right hand side float to use to compute componentwise less than.</param> 459 /// <returns>bool4 result of the componentwise less than.</returns> 460 [MethodImpl(MethodImplOptions.AggressiveInlining)] 461 public static bool4 operator < (float4 lhs, float rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } 462 463 /// <summary>Returns the result of a componentwise less than operation on a float value and a float4 vector.</summary> 464 /// <param name="lhs">Left hand side float to use to compute componentwise less than.</param> 465 /// <param name="rhs">Right hand side float4 to use to compute componentwise less than.</param> 466 /// <returns>bool4 result of the componentwise less than.</returns> 467 [MethodImpl(MethodImplOptions.AggressiveInlining)] 468 public static bool4 operator < (float lhs, float4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } 469 470 471 /// <summary>Returns the result of a componentwise less or equal operation on two float4 vectors.</summary> 472 /// <param name="lhs">Left hand side float4 to use to compute componentwise less or equal.</param> 473 /// <param name="rhs">Right hand side float4 to use to compute componentwise less or equal.</param> 474 /// <returns>bool4 result of the componentwise less or equal.</returns> 475 [MethodImpl(MethodImplOptions.AggressiveInlining)] 476 public static bool4 operator <= (float4 lhs, float4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } 477 478 /// <summary>Returns the result of a componentwise less or equal operation on a float4 vector and a float value.</summary> 479 /// <param name="lhs">Left hand side float4 to use to compute componentwise less or equal.</param> 480 /// <param name="rhs">Right hand side float to use to compute componentwise less or equal.</param> 481 /// <returns>bool4 result of the componentwise less or equal.</returns> 482 [MethodImpl(MethodImplOptions.AggressiveInlining)] 483 public static bool4 operator <= (float4 lhs, float rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } 484 485 /// <summary>Returns the result of a componentwise less or equal operation on a float value and a float4 vector.</summary> 486 /// <param name="lhs">Left hand side float to use to compute componentwise less or equal.</param> 487 /// <param name="rhs">Right hand side float4 to use to compute componentwise less or equal.</param> 488 /// <returns>bool4 result of the componentwise less or equal.</returns> 489 [MethodImpl(MethodImplOptions.AggressiveInlining)] 490 public static bool4 operator <= (float lhs, float4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } 491 492 493 /// <summary>Returns the result of a componentwise greater than operation on two float4 vectors.</summary> 494 /// <param name="lhs">Left hand side float4 to use to compute componentwise greater than.</param> 495 /// <param name="rhs">Right hand side float4 to use to compute componentwise greater than.</param> 496 /// <returns>bool4 result of the componentwise greater than.</returns> 497 [MethodImpl(MethodImplOptions.AggressiveInlining)] 498 public static bool4 operator > (float4 lhs, float4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } 499 500 /// <summary>Returns the result of a componentwise greater than operation on a float4 vector and a float value.</summary> 501 /// <param name="lhs">Left hand side float4 to use to compute componentwise greater than.</param> 502 /// <param name="rhs">Right hand side float to use to compute componentwise greater than.</param> 503 /// <returns>bool4 result of the componentwise greater than.</returns> 504 [MethodImpl(MethodImplOptions.AggressiveInlining)] 505 public static bool4 operator > (float4 lhs, float rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } 506 507 /// <summary>Returns the result of a componentwise greater than operation on a float value and a float4 vector.</summary> 508 /// <param name="lhs">Left hand side float to use to compute componentwise greater than.</param> 509 /// <param name="rhs">Right hand side float4 to use to compute componentwise greater than.</param> 510 /// <returns>bool4 result of the componentwise greater than.</returns> 511 [MethodImpl(MethodImplOptions.AggressiveInlining)] 512 public static bool4 operator > (float lhs, float4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } 513 514 515 /// <summary>Returns the result of a componentwise greater or equal operation on two float4 vectors.</summary> 516 /// <param name="lhs">Left hand side float4 to use to compute componentwise greater or equal.</param> 517 /// <param name="rhs">Right hand side float4 to use to compute componentwise greater or equal.</param> 518 /// <returns>bool4 result of the componentwise greater or equal.</returns> 519 [MethodImpl(MethodImplOptions.AggressiveInlining)] 520 public static bool4 operator >= (float4 lhs, float4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } 521 522 /// <summary>Returns the result of a componentwise greater or equal operation on a float4 vector and a float value.</summary> 523 /// <param name="lhs">Left hand side float4 to use to compute componentwise greater or equal.</param> 524 /// <param name="rhs">Right hand side float to use to compute componentwise greater or equal.</param> 525 /// <returns>bool4 result of the componentwise greater or equal.</returns> 526 [MethodImpl(MethodImplOptions.AggressiveInlining)] 527 public static bool4 operator >= (float4 lhs, float rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } 528 529 /// <summary>Returns the result of a componentwise greater or equal operation on a float value and a float4 vector.</summary> 530 /// <param name="lhs">Left hand side float to use to compute componentwise greater or equal.</param> 531 /// <param name="rhs">Right hand side float4 to use to compute componentwise greater or equal.</param> 532 /// <returns>bool4 result of the componentwise greater or equal.</returns> 533 [MethodImpl(MethodImplOptions.AggressiveInlining)] 534 public static bool4 operator >= (float lhs, float4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } 535 536 537 /// <summary>Returns the result of a componentwise unary minus operation on a float4 vector.</summary> 538 /// <param name="val">Value to use when computing the componentwise unary minus.</param> 539 /// <returns>float4 result of the componentwise unary minus.</returns> 540 [MethodImpl(MethodImplOptions.AggressiveInlining)] 541 public static float4 operator - (float4 val) { return new float4 (-val.x, -val.y, -val.z, -val.w); } 542 543 544 /// <summary>Returns the result of a componentwise unary plus operation on a float4 vector.</summary> 545 /// <param name="val">Value to use when computing the componentwise unary plus.</param> 546 /// <returns>float4 result of the componentwise unary plus.</returns> 547 [MethodImpl(MethodImplOptions.AggressiveInlining)] 548 public static float4 operator + (float4 val) { return new float4 (+val.x, +val.y, +val.z, +val.w); } 549 550 551 /// <summary>Returns the result of a componentwise equality operation on two float4 vectors.</summary> 552 /// <param name="lhs">Left hand side float4 to use to compute componentwise equality.</param> 553 /// <param name="rhs">Right hand side float4 to use to compute componentwise equality.</param> 554 /// <returns>bool4 result of the componentwise equality.</returns> 555 [MethodImpl(MethodImplOptions.AggressiveInlining)] 556 public static bool4 operator == (float4 lhs, float4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } 557 558 /// <summary>Returns the result of a componentwise equality operation on a float4 vector and a float value.</summary> 559 /// <param name="lhs">Left hand side float4 to use to compute componentwise equality.</param> 560 /// <param name="rhs">Right hand side float to use to compute componentwise equality.</param> 561 /// <returns>bool4 result of the componentwise equality.</returns> 562 [MethodImpl(MethodImplOptions.AggressiveInlining)] 563 public static bool4 operator == (float4 lhs, float rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } 564 565 /// <summary>Returns the result of a componentwise equality operation on a float value and a float4 vector.</summary> 566 /// <param name="lhs">Left hand side float to use to compute componentwise equality.</param> 567 /// <param name="rhs">Right hand side float4 to use to compute componentwise equality.</param> 568 /// <returns>bool4 result of the componentwise equality.</returns> 569 [MethodImpl(MethodImplOptions.AggressiveInlining)] 570 public static bool4 operator == (float lhs, float4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } 571 572 573 /// <summary>Returns the result of a componentwise not equal operation on two float4 vectors.</summary> 574 /// <param name="lhs">Left hand side float4 to use to compute componentwise not equal.</param> 575 /// <param name="rhs">Right hand side float4 to use to compute componentwise not equal.</param> 576 /// <returns>bool4 result of the componentwise not equal.</returns> 577 [MethodImpl(MethodImplOptions.AggressiveInlining)] 578 public static bool4 operator != (float4 lhs, float4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } 579 580 /// <summary>Returns the result of a componentwise not equal operation on a float4 vector and a float value.</summary> 581 /// <param name="lhs">Left hand side float4 to use to compute componentwise not equal.</param> 582 /// <param name="rhs">Right hand side float to use to compute componentwise not equal.</param> 583 /// <returns>bool4 result of the componentwise not equal.</returns> 584 [MethodImpl(MethodImplOptions.AggressiveInlining)] 585 public static bool4 operator != (float4 lhs, float rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } 586 587 /// <summary>Returns the result of a componentwise not equal operation on a float value and a float4 vector.</summary> 588 /// <param name="lhs">Left hand side float to use to compute componentwise not equal.</param> 589 /// <param name="rhs">Right hand side float4 to use to compute componentwise not equal.</param> 590 /// <returns>bool4 result of the componentwise not equal.</returns> 591 [MethodImpl(MethodImplOptions.AggressiveInlining)] 592 public static bool4 operator != (float lhs, float4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } 593 594 595 596 597 /// <summary>Swizzles the vector.</summary> 598 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 599 public float4 xxxx 600 { 601 [MethodImpl(MethodImplOptions.AggressiveInlining)] 602 get { return new float4(x, x, x, x); } 603 } 604 605 606 /// <summary>Swizzles the vector.</summary> 607 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 608 public float4 xxxy 609 { 610 [MethodImpl(MethodImplOptions.AggressiveInlining)] 611 get { return new float4(x, x, x, y); } 612 } 613 614 615 /// <summary>Swizzles the vector.</summary> 616 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 617 public float4 xxxz 618 { 619 [MethodImpl(MethodImplOptions.AggressiveInlining)] 620 get { return new float4(x, x, x, z); } 621 } 622 623 624 /// <summary>Swizzles the vector.</summary> 625 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 626 public float4 xxxw 627 { 628 [MethodImpl(MethodImplOptions.AggressiveInlining)] 629 get { return new float4(x, x, x, w); } 630 } 631 632 633 /// <summary>Swizzles the vector.</summary> 634 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 635 public float4 xxyx 636 { 637 [MethodImpl(MethodImplOptions.AggressiveInlining)] 638 get { return new float4(x, x, y, x); } 639 } 640 641 642 /// <summary>Swizzles the vector.</summary> 643 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 644 public float4 xxyy 645 { 646 [MethodImpl(MethodImplOptions.AggressiveInlining)] 647 get { return new float4(x, x, y, y); } 648 } 649 650 651 /// <summary>Swizzles the vector.</summary> 652 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 653 public float4 xxyz 654 { 655 [MethodImpl(MethodImplOptions.AggressiveInlining)] 656 get { return new float4(x, x, y, z); } 657 } 658 659 660 /// <summary>Swizzles the vector.</summary> 661 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 662 public float4 xxyw 663 { 664 [MethodImpl(MethodImplOptions.AggressiveInlining)] 665 get { return new float4(x, x, y, w); } 666 } 667 668 669 /// <summary>Swizzles the vector.</summary> 670 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 671 public float4 xxzx 672 { 673 [MethodImpl(MethodImplOptions.AggressiveInlining)] 674 get { return new float4(x, x, z, x); } 675 } 676 677 678 /// <summary>Swizzles the vector.</summary> 679 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 680 public float4 xxzy 681 { 682 [MethodImpl(MethodImplOptions.AggressiveInlining)] 683 get { return new float4(x, x, z, y); } 684 } 685 686 687 /// <summary>Swizzles the vector.</summary> 688 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 689 public float4 xxzz 690 { 691 [MethodImpl(MethodImplOptions.AggressiveInlining)] 692 get { return new float4(x, x, z, z); } 693 } 694 695 696 /// <summary>Swizzles the vector.</summary> 697 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 698 public float4 xxzw 699 { 700 [MethodImpl(MethodImplOptions.AggressiveInlining)] 701 get { return new float4(x, x, z, w); } 702 } 703 704 705 /// <summary>Swizzles the vector.</summary> 706 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 707 public float4 xxwx 708 { 709 [MethodImpl(MethodImplOptions.AggressiveInlining)] 710 get { return new float4(x, x, w, x); } 711 } 712 713 714 /// <summary>Swizzles the vector.</summary> 715 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 716 public float4 xxwy 717 { 718 [MethodImpl(MethodImplOptions.AggressiveInlining)] 719 get { return new float4(x, x, w, y); } 720 } 721 722 723 /// <summary>Swizzles the vector.</summary> 724 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 725 public float4 xxwz 726 { 727 [MethodImpl(MethodImplOptions.AggressiveInlining)] 728 get { return new float4(x, x, w, z); } 729 } 730 731 732 /// <summary>Swizzles the vector.</summary> 733 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 734 public float4 xxww 735 { 736 [MethodImpl(MethodImplOptions.AggressiveInlining)] 737 get { return new float4(x, x, w, w); } 738 } 739 740 741 /// <summary>Swizzles the vector.</summary> 742 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 743 public float4 xyxx 744 { 745 [MethodImpl(MethodImplOptions.AggressiveInlining)] 746 get { return new float4(x, y, x, x); } 747 } 748 749 750 /// <summary>Swizzles the vector.</summary> 751 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 752 public float4 xyxy 753 { 754 [MethodImpl(MethodImplOptions.AggressiveInlining)] 755 get { return new float4(x, y, x, y); } 756 } 757 758 759 /// <summary>Swizzles the vector.</summary> 760 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 761 public float4 xyxz 762 { 763 [MethodImpl(MethodImplOptions.AggressiveInlining)] 764 get { return new float4(x, y, x, z); } 765 } 766 767 768 /// <summary>Swizzles the vector.</summary> 769 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 770 public float4 xyxw 771 { 772 [MethodImpl(MethodImplOptions.AggressiveInlining)] 773 get { return new float4(x, y, x, w); } 774 } 775 776 777 /// <summary>Swizzles the vector.</summary> 778 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 779 public float4 xyyx 780 { 781 [MethodImpl(MethodImplOptions.AggressiveInlining)] 782 get { return new float4(x, y, y, x); } 783 } 784 785 786 /// <summary>Swizzles the vector.</summary> 787 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 788 public float4 xyyy 789 { 790 [MethodImpl(MethodImplOptions.AggressiveInlining)] 791 get { return new float4(x, y, y, y); } 792 } 793 794 795 /// <summary>Swizzles the vector.</summary> 796 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 797 public float4 xyyz 798 { 799 [MethodImpl(MethodImplOptions.AggressiveInlining)] 800 get { return new float4(x, y, y, z); } 801 } 802 803 804 /// <summary>Swizzles the vector.</summary> 805 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 806 public float4 xyyw 807 { 808 [MethodImpl(MethodImplOptions.AggressiveInlining)] 809 get { return new float4(x, y, y, w); } 810 } 811 812 813 /// <summary>Swizzles the vector.</summary> 814 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 815 public float4 xyzx 816 { 817 [MethodImpl(MethodImplOptions.AggressiveInlining)] 818 get { return new float4(x, y, z, x); } 819 } 820 821 822 /// <summary>Swizzles the vector.</summary> 823 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 824 public float4 xyzy 825 { 826 [MethodImpl(MethodImplOptions.AggressiveInlining)] 827 get { return new float4(x, y, z, y); } 828 } 829 830 831 /// <summary>Swizzles the vector.</summary> 832 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 833 public float4 xyzz 834 { 835 [MethodImpl(MethodImplOptions.AggressiveInlining)] 836 get { return new float4(x, y, z, z); } 837 } 838 839 840 /// <summary>Swizzles the vector.</summary> 841 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 842 public float4 xyzw 843 { 844 [MethodImpl(MethodImplOptions.AggressiveInlining)] 845 get { return new float4(x, y, z, w); } 846 [MethodImpl(MethodImplOptions.AggressiveInlining)] 847 set { x = value.x; y = value.y; z = value.z; w = value.w; } 848 } 849 850 851 /// <summary>Swizzles the vector.</summary> 852 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 853 public float4 xywx 854 { 855 [MethodImpl(MethodImplOptions.AggressiveInlining)] 856 get { return new float4(x, y, w, x); } 857 } 858 859 860 /// <summary>Swizzles the vector.</summary> 861 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 862 public float4 xywy 863 { 864 [MethodImpl(MethodImplOptions.AggressiveInlining)] 865 get { return new float4(x, y, w, y); } 866 } 867 868 869 /// <summary>Swizzles the vector.</summary> 870 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 871 public float4 xywz 872 { 873 [MethodImpl(MethodImplOptions.AggressiveInlining)] 874 get { return new float4(x, y, w, z); } 875 [MethodImpl(MethodImplOptions.AggressiveInlining)] 876 set { x = value.x; y = value.y; w = value.z; z = value.w; } 877 } 878 879 880 /// <summary>Swizzles the vector.</summary> 881 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 882 public float4 xyww 883 { 884 [MethodImpl(MethodImplOptions.AggressiveInlining)] 885 get { return new float4(x, y, w, w); } 886 } 887 888 889 /// <summary>Swizzles the vector.</summary> 890 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 891 public float4 xzxx 892 { 893 [MethodImpl(MethodImplOptions.AggressiveInlining)] 894 get { return new float4(x, z, x, x); } 895 } 896 897 898 /// <summary>Swizzles the vector.</summary> 899 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 900 public float4 xzxy 901 { 902 [MethodImpl(MethodImplOptions.AggressiveInlining)] 903 get { return new float4(x, z, x, y); } 904 } 905 906 907 /// <summary>Swizzles the vector.</summary> 908 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 909 public float4 xzxz 910 { 911 [MethodImpl(MethodImplOptions.AggressiveInlining)] 912 get { return new float4(x, z, x, z); } 913 } 914 915 916 /// <summary>Swizzles the vector.</summary> 917 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 918 public float4 xzxw 919 { 920 [MethodImpl(MethodImplOptions.AggressiveInlining)] 921 get { return new float4(x, z, x, w); } 922 } 923 924 925 /// <summary>Swizzles the vector.</summary> 926 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 927 public float4 xzyx 928 { 929 [MethodImpl(MethodImplOptions.AggressiveInlining)] 930 get { return new float4(x, z, y, x); } 931 } 932 933 934 /// <summary>Swizzles the vector.</summary> 935 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 936 public float4 xzyy 937 { 938 [MethodImpl(MethodImplOptions.AggressiveInlining)] 939 get { return new float4(x, z, y, y); } 940 } 941 942 943 /// <summary>Swizzles the vector.</summary> 944 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 945 public float4 xzyz 946 { 947 [MethodImpl(MethodImplOptions.AggressiveInlining)] 948 get { return new float4(x, z, y, z); } 949 } 950 951 952 /// <summary>Swizzles the vector.</summary> 953 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 954 public float4 xzyw 955 { 956 [MethodImpl(MethodImplOptions.AggressiveInlining)] 957 get { return new float4(x, z, y, w); } 958 [MethodImpl(MethodImplOptions.AggressiveInlining)] 959 set { x = value.x; z = value.y; y = value.z; w = value.w; } 960 } 961 962 963 /// <summary>Swizzles the vector.</summary> 964 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 965 public float4 xzzx 966 { 967 [MethodImpl(MethodImplOptions.AggressiveInlining)] 968 get { return new float4(x, z, z, x); } 969 } 970 971 972 /// <summary>Swizzles the vector.</summary> 973 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 974 public float4 xzzy 975 { 976 [MethodImpl(MethodImplOptions.AggressiveInlining)] 977 get { return new float4(x, z, z, y); } 978 } 979 980 981 /// <summary>Swizzles the vector.</summary> 982 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 983 public float4 xzzz 984 { 985 [MethodImpl(MethodImplOptions.AggressiveInlining)] 986 get { return new float4(x, z, z, z); } 987 } 988 989 990 /// <summary>Swizzles the vector.</summary> 991 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 992 public float4 xzzw 993 { 994 [MethodImpl(MethodImplOptions.AggressiveInlining)] 995 get { return new float4(x, z, z, w); } 996 } 997 998 999 /// <summary>Swizzles the vector.</summary> 1000 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1001 public float4 xzwx 1002 { 1003 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1004 get { return new float4(x, z, w, x); } 1005 } 1006 1007 1008 /// <summary>Swizzles the vector.</summary> 1009 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1010 public float4 xzwy 1011 { 1012 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1013 get { return new float4(x, z, w, y); } 1014 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1015 set { x = value.x; z = value.y; w = value.z; y = value.w; } 1016 } 1017 1018 1019 /// <summary>Swizzles the vector.</summary> 1020 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1021 public float4 xzwz 1022 { 1023 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1024 get { return new float4(x, z, w, z); } 1025 } 1026 1027 1028 /// <summary>Swizzles the vector.</summary> 1029 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1030 public float4 xzww 1031 { 1032 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1033 get { return new float4(x, z, w, w); } 1034 } 1035 1036 1037 /// <summary>Swizzles the vector.</summary> 1038 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1039 public float4 xwxx 1040 { 1041 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1042 get { return new float4(x, w, x, x); } 1043 } 1044 1045 1046 /// <summary>Swizzles the vector.</summary> 1047 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1048 public float4 xwxy 1049 { 1050 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1051 get { return new float4(x, w, x, y); } 1052 } 1053 1054 1055 /// <summary>Swizzles the vector.</summary> 1056 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1057 public float4 xwxz 1058 { 1059 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1060 get { return new float4(x, w, x, z); } 1061 } 1062 1063 1064 /// <summary>Swizzles the vector.</summary> 1065 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1066 public float4 xwxw 1067 { 1068 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1069 get { return new float4(x, w, x, w); } 1070 } 1071 1072 1073 /// <summary>Swizzles the vector.</summary> 1074 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1075 public float4 xwyx 1076 { 1077 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1078 get { return new float4(x, w, y, x); } 1079 } 1080 1081 1082 /// <summary>Swizzles the vector.</summary> 1083 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1084 public float4 xwyy 1085 { 1086 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1087 get { return new float4(x, w, y, y); } 1088 } 1089 1090 1091 /// <summary>Swizzles the vector.</summary> 1092 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1093 public float4 xwyz 1094 { 1095 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1096 get { return new float4(x, w, y, z); } 1097 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1098 set { x = value.x; w = value.y; y = value.z; z = value.w; } 1099 } 1100 1101 1102 /// <summary>Swizzles the vector.</summary> 1103 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1104 public float4 xwyw 1105 { 1106 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1107 get { return new float4(x, w, y, w); } 1108 } 1109 1110 1111 /// <summary>Swizzles the vector.</summary> 1112 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1113 public float4 xwzx 1114 { 1115 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1116 get { return new float4(x, w, z, x); } 1117 } 1118 1119 1120 /// <summary>Swizzles the vector.</summary> 1121 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1122 public float4 xwzy 1123 { 1124 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1125 get { return new float4(x, w, z, y); } 1126 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1127 set { x = value.x; w = value.y; z = value.z; y = value.w; } 1128 } 1129 1130 1131 /// <summary>Swizzles the vector.</summary> 1132 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1133 public float4 xwzz 1134 { 1135 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1136 get { return new float4(x, w, z, z); } 1137 } 1138 1139 1140 /// <summary>Swizzles the vector.</summary> 1141 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1142 public float4 xwzw 1143 { 1144 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1145 get { return new float4(x, w, z, w); } 1146 } 1147 1148 1149 /// <summary>Swizzles the vector.</summary> 1150 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1151 public float4 xwwx 1152 { 1153 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1154 get { return new float4(x, w, w, x); } 1155 } 1156 1157 1158 /// <summary>Swizzles the vector.</summary> 1159 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1160 public float4 xwwy 1161 { 1162 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1163 get { return new float4(x, w, w, y); } 1164 } 1165 1166 1167 /// <summary>Swizzles the vector.</summary> 1168 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1169 public float4 xwwz 1170 { 1171 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1172 get { return new float4(x, w, w, z); } 1173 } 1174 1175 1176 /// <summary>Swizzles the vector.</summary> 1177 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1178 public float4 xwww 1179 { 1180 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1181 get { return new float4(x, w, w, w); } 1182 } 1183 1184 1185 /// <summary>Swizzles the vector.</summary> 1186 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1187 public float4 yxxx 1188 { 1189 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1190 get { return new float4(y, x, x, x); } 1191 } 1192 1193 1194 /// <summary>Swizzles the vector.</summary> 1195 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1196 public float4 yxxy 1197 { 1198 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1199 get { return new float4(y, x, x, y); } 1200 } 1201 1202 1203 /// <summary>Swizzles the vector.</summary> 1204 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1205 public float4 yxxz 1206 { 1207 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1208 get { return new float4(y, x, x, z); } 1209 } 1210 1211 1212 /// <summary>Swizzles the vector.</summary> 1213 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1214 public float4 yxxw 1215 { 1216 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1217 get { return new float4(y, x, x, w); } 1218 } 1219 1220 1221 /// <summary>Swizzles the vector.</summary> 1222 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1223 public float4 yxyx 1224 { 1225 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1226 get { return new float4(y, x, y, x); } 1227 } 1228 1229 1230 /// <summary>Swizzles the vector.</summary> 1231 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1232 public float4 yxyy 1233 { 1234 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1235 get { return new float4(y, x, y, y); } 1236 } 1237 1238 1239 /// <summary>Swizzles the vector.</summary> 1240 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1241 public float4 yxyz 1242 { 1243 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1244 get { return new float4(y, x, y, z); } 1245 } 1246 1247 1248 /// <summary>Swizzles the vector.</summary> 1249 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1250 public float4 yxyw 1251 { 1252 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1253 get { return new float4(y, x, y, w); } 1254 } 1255 1256 1257 /// <summary>Swizzles the vector.</summary> 1258 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1259 public float4 yxzx 1260 { 1261 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1262 get { return new float4(y, x, z, x); } 1263 } 1264 1265 1266 /// <summary>Swizzles the vector.</summary> 1267 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1268 public float4 yxzy 1269 { 1270 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1271 get { return new float4(y, x, z, y); } 1272 } 1273 1274 1275 /// <summary>Swizzles the vector.</summary> 1276 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1277 public float4 yxzz 1278 { 1279 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1280 get { return new float4(y, x, z, z); } 1281 } 1282 1283 1284 /// <summary>Swizzles the vector.</summary> 1285 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1286 public float4 yxzw 1287 { 1288 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1289 get { return new float4(y, x, z, w); } 1290 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1291 set { y = value.x; x = value.y; z = value.z; w = value.w; } 1292 } 1293 1294 1295 /// <summary>Swizzles the vector.</summary> 1296 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1297 public float4 yxwx 1298 { 1299 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1300 get { return new float4(y, x, w, x); } 1301 } 1302 1303 1304 /// <summary>Swizzles the vector.</summary> 1305 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1306 public float4 yxwy 1307 { 1308 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1309 get { return new float4(y, x, w, y); } 1310 } 1311 1312 1313 /// <summary>Swizzles the vector.</summary> 1314 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1315 public float4 yxwz 1316 { 1317 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1318 get { return new float4(y, x, w, z); } 1319 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1320 set { y = value.x; x = value.y; w = value.z; z = value.w; } 1321 } 1322 1323 1324 /// <summary>Swizzles the vector.</summary> 1325 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1326 public float4 yxww 1327 { 1328 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1329 get { return new float4(y, x, w, w); } 1330 } 1331 1332 1333 /// <summary>Swizzles the vector.</summary> 1334 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1335 public float4 yyxx 1336 { 1337 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1338 get { return new float4(y, y, x, x); } 1339 } 1340 1341 1342 /// <summary>Swizzles the vector.</summary> 1343 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1344 public float4 yyxy 1345 { 1346 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1347 get { return new float4(y, y, x, y); } 1348 } 1349 1350 1351 /// <summary>Swizzles the vector.</summary> 1352 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1353 public float4 yyxz 1354 { 1355 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1356 get { return new float4(y, y, x, z); } 1357 } 1358 1359 1360 /// <summary>Swizzles the vector.</summary> 1361 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1362 public float4 yyxw 1363 { 1364 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1365 get { return new float4(y, y, x, w); } 1366 } 1367 1368 1369 /// <summary>Swizzles the vector.</summary> 1370 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1371 public float4 yyyx 1372 { 1373 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1374 get { return new float4(y, y, y, x); } 1375 } 1376 1377 1378 /// <summary>Swizzles the vector.</summary> 1379 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1380 public float4 yyyy 1381 { 1382 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1383 get { return new float4(y, y, y, y); } 1384 } 1385 1386 1387 /// <summary>Swizzles the vector.</summary> 1388 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1389 public float4 yyyz 1390 { 1391 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1392 get { return new float4(y, y, y, z); } 1393 } 1394 1395 1396 /// <summary>Swizzles the vector.</summary> 1397 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1398 public float4 yyyw 1399 { 1400 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1401 get { return new float4(y, y, y, w); } 1402 } 1403 1404 1405 /// <summary>Swizzles the vector.</summary> 1406 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1407 public float4 yyzx 1408 { 1409 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1410 get { return new float4(y, y, z, x); } 1411 } 1412 1413 1414 /// <summary>Swizzles the vector.</summary> 1415 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1416 public float4 yyzy 1417 { 1418 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1419 get { return new float4(y, y, z, y); } 1420 } 1421 1422 1423 /// <summary>Swizzles the vector.</summary> 1424 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1425 public float4 yyzz 1426 { 1427 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1428 get { return new float4(y, y, z, z); } 1429 } 1430 1431 1432 /// <summary>Swizzles the vector.</summary> 1433 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1434 public float4 yyzw 1435 { 1436 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1437 get { return new float4(y, y, z, w); } 1438 } 1439 1440 1441 /// <summary>Swizzles the vector.</summary> 1442 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1443 public float4 yywx 1444 { 1445 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1446 get { return new float4(y, y, w, x); } 1447 } 1448 1449 1450 /// <summary>Swizzles the vector.</summary> 1451 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1452 public float4 yywy 1453 { 1454 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1455 get { return new float4(y, y, w, y); } 1456 } 1457 1458 1459 /// <summary>Swizzles the vector.</summary> 1460 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1461 public float4 yywz 1462 { 1463 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1464 get { return new float4(y, y, w, z); } 1465 } 1466 1467 1468 /// <summary>Swizzles the vector.</summary> 1469 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1470 public float4 yyww 1471 { 1472 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1473 get { return new float4(y, y, w, w); } 1474 } 1475 1476 1477 /// <summary>Swizzles the vector.</summary> 1478 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1479 public float4 yzxx 1480 { 1481 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1482 get { return new float4(y, z, x, x); } 1483 } 1484 1485 1486 /// <summary>Swizzles the vector.</summary> 1487 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1488 public float4 yzxy 1489 { 1490 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1491 get { return new float4(y, z, x, y); } 1492 } 1493 1494 1495 /// <summary>Swizzles the vector.</summary> 1496 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1497 public float4 yzxz 1498 { 1499 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1500 get { return new float4(y, z, x, z); } 1501 } 1502 1503 1504 /// <summary>Swizzles the vector.</summary> 1505 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1506 public float4 yzxw 1507 { 1508 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1509 get { return new float4(y, z, x, w); } 1510 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1511 set { y = value.x; z = value.y; x = value.z; w = value.w; } 1512 } 1513 1514 1515 /// <summary>Swizzles the vector.</summary> 1516 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1517 public float4 yzyx 1518 { 1519 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1520 get { return new float4(y, z, y, x); } 1521 } 1522 1523 1524 /// <summary>Swizzles the vector.</summary> 1525 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1526 public float4 yzyy 1527 { 1528 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1529 get { return new float4(y, z, y, y); } 1530 } 1531 1532 1533 /// <summary>Swizzles the vector.</summary> 1534 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1535 public float4 yzyz 1536 { 1537 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1538 get { return new float4(y, z, y, z); } 1539 } 1540 1541 1542 /// <summary>Swizzles the vector.</summary> 1543 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1544 public float4 yzyw 1545 { 1546 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1547 get { return new float4(y, z, y, w); } 1548 } 1549 1550 1551 /// <summary>Swizzles the vector.</summary> 1552 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1553 public float4 yzzx 1554 { 1555 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1556 get { return new float4(y, z, z, x); } 1557 } 1558 1559 1560 /// <summary>Swizzles the vector.</summary> 1561 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1562 public float4 yzzy 1563 { 1564 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1565 get { return new float4(y, z, z, y); } 1566 } 1567 1568 1569 /// <summary>Swizzles the vector.</summary> 1570 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1571 public float4 yzzz 1572 { 1573 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1574 get { return new float4(y, z, z, z); } 1575 } 1576 1577 1578 /// <summary>Swizzles the vector.</summary> 1579 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1580 public float4 yzzw 1581 { 1582 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1583 get { return new float4(y, z, z, w); } 1584 } 1585 1586 1587 /// <summary>Swizzles the vector.</summary> 1588 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1589 public float4 yzwx 1590 { 1591 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1592 get { return new float4(y, z, w, x); } 1593 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1594 set { y = value.x; z = value.y; w = value.z; x = value.w; } 1595 } 1596 1597 1598 /// <summary>Swizzles the vector.</summary> 1599 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1600 public float4 yzwy 1601 { 1602 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1603 get { return new float4(y, z, w, y); } 1604 } 1605 1606 1607 /// <summary>Swizzles the vector.</summary> 1608 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1609 public float4 yzwz 1610 { 1611 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1612 get { return new float4(y, z, w, z); } 1613 } 1614 1615 1616 /// <summary>Swizzles the vector.</summary> 1617 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1618 public float4 yzww 1619 { 1620 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1621 get { return new float4(y, z, w, w); } 1622 } 1623 1624 1625 /// <summary>Swizzles the vector.</summary> 1626 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1627 public float4 ywxx 1628 { 1629 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1630 get { return new float4(y, w, x, x); } 1631 } 1632 1633 1634 /// <summary>Swizzles the vector.</summary> 1635 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1636 public float4 ywxy 1637 { 1638 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1639 get { return new float4(y, w, x, y); } 1640 } 1641 1642 1643 /// <summary>Swizzles the vector.</summary> 1644 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1645 public float4 ywxz 1646 { 1647 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1648 get { return new float4(y, w, x, z); } 1649 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1650 set { y = value.x; w = value.y; x = value.z; z = value.w; } 1651 } 1652 1653 1654 /// <summary>Swizzles the vector.</summary> 1655 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1656 public float4 ywxw 1657 { 1658 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1659 get { return new float4(y, w, x, w); } 1660 } 1661 1662 1663 /// <summary>Swizzles the vector.</summary> 1664 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1665 public float4 ywyx 1666 { 1667 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1668 get { return new float4(y, w, y, x); } 1669 } 1670 1671 1672 /// <summary>Swizzles the vector.</summary> 1673 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1674 public float4 ywyy 1675 { 1676 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1677 get { return new float4(y, w, y, y); } 1678 } 1679 1680 1681 /// <summary>Swizzles the vector.</summary> 1682 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1683 public float4 ywyz 1684 { 1685 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1686 get { return new float4(y, w, y, z); } 1687 } 1688 1689 1690 /// <summary>Swizzles the vector.</summary> 1691 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1692 public float4 ywyw 1693 { 1694 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1695 get { return new float4(y, w, y, w); } 1696 } 1697 1698 1699 /// <summary>Swizzles the vector.</summary> 1700 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1701 public float4 ywzx 1702 { 1703 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1704 get { return new float4(y, w, z, x); } 1705 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1706 set { y = value.x; w = value.y; z = value.z; x = value.w; } 1707 } 1708 1709 1710 /// <summary>Swizzles the vector.</summary> 1711 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1712 public float4 ywzy 1713 { 1714 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1715 get { return new float4(y, w, z, y); } 1716 } 1717 1718 1719 /// <summary>Swizzles the vector.</summary> 1720 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1721 public float4 ywzz 1722 { 1723 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1724 get { return new float4(y, w, z, z); } 1725 } 1726 1727 1728 /// <summary>Swizzles the vector.</summary> 1729 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1730 public float4 ywzw 1731 { 1732 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1733 get { return new float4(y, w, z, w); } 1734 } 1735 1736 1737 /// <summary>Swizzles the vector.</summary> 1738 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1739 public float4 ywwx 1740 { 1741 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1742 get { return new float4(y, w, w, x); } 1743 } 1744 1745 1746 /// <summary>Swizzles the vector.</summary> 1747 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1748 public float4 ywwy 1749 { 1750 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1751 get { return new float4(y, w, w, y); } 1752 } 1753 1754 1755 /// <summary>Swizzles the vector.</summary> 1756 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1757 public float4 ywwz 1758 { 1759 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1760 get { return new float4(y, w, w, z); } 1761 } 1762 1763 1764 /// <summary>Swizzles the vector.</summary> 1765 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1766 public float4 ywww 1767 { 1768 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1769 get { return new float4(y, w, w, w); } 1770 } 1771 1772 1773 /// <summary>Swizzles the vector.</summary> 1774 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1775 public float4 zxxx 1776 { 1777 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1778 get { return new float4(z, x, x, x); } 1779 } 1780 1781 1782 /// <summary>Swizzles the vector.</summary> 1783 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1784 public float4 zxxy 1785 { 1786 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1787 get { return new float4(z, x, x, y); } 1788 } 1789 1790 1791 /// <summary>Swizzles the vector.</summary> 1792 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1793 public float4 zxxz 1794 { 1795 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1796 get { return new float4(z, x, x, z); } 1797 } 1798 1799 1800 /// <summary>Swizzles the vector.</summary> 1801 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1802 public float4 zxxw 1803 { 1804 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1805 get { return new float4(z, x, x, w); } 1806 } 1807 1808 1809 /// <summary>Swizzles the vector.</summary> 1810 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1811 public float4 zxyx 1812 { 1813 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1814 get { return new float4(z, x, y, x); } 1815 } 1816 1817 1818 /// <summary>Swizzles the vector.</summary> 1819 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1820 public float4 zxyy 1821 { 1822 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1823 get { return new float4(z, x, y, y); } 1824 } 1825 1826 1827 /// <summary>Swizzles the vector.</summary> 1828 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1829 public float4 zxyz 1830 { 1831 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1832 get { return new float4(z, x, y, z); } 1833 } 1834 1835 1836 /// <summary>Swizzles the vector.</summary> 1837 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1838 public float4 zxyw 1839 { 1840 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1841 get { return new float4(z, x, y, w); } 1842 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1843 set { z = value.x; x = value.y; y = value.z; w = value.w; } 1844 } 1845 1846 1847 /// <summary>Swizzles the vector.</summary> 1848 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1849 public float4 zxzx 1850 { 1851 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1852 get { return new float4(z, x, z, x); } 1853 } 1854 1855 1856 /// <summary>Swizzles the vector.</summary> 1857 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1858 public float4 zxzy 1859 { 1860 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1861 get { return new float4(z, x, z, y); } 1862 } 1863 1864 1865 /// <summary>Swizzles the vector.</summary> 1866 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1867 public float4 zxzz 1868 { 1869 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1870 get { return new float4(z, x, z, z); } 1871 } 1872 1873 1874 /// <summary>Swizzles the vector.</summary> 1875 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1876 public float4 zxzw 1877 { 1878 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1879 get { return new float4(z, x, z, w); } 1880 } 1881 1882 1883 /// <summary>Swizzles the vector.</summary> 1884 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1885 public float4 zxwx 1886 { 1887 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1888 get { return new float4(z, x, w, x); } 1889 } 1890 1891 1892 /// <summary>Swizzles the vector.</summary> 1893 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1894 public float4 zxwy 1895 { 1896 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1897 get { return new float4(z, x, w, y); } 1898 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1899 set { z = value.x; x = value.y; w = value.z; y = value.w; } 1900 } 1901 1902 1903 /// <summary>Swizzles the vector.</summary> 1904 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1905 public float4 zxwz 1906 { 1907 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1908 get { return new float4(z, x, w, z); } 1909 } 1910 1911 1912 /// <summary>Swizzles the vector.</summary> 1913 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1914 public float4 zxww 1915 { 1916 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1917 get { return new float4(z, x, w, w); } 1918 } 1919 1920 1921 /// <summary>Swizzles the vector.</summary> 1922 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1923 public float4 zyxx 1924 { 1925 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1926 get { return new float4(z, y, x, x); } 1927 } 1928 1929 1930 /// <summary>Swizzles the vector.</summary> 1931 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1932 public float4 zyxy 1933 { 1934 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1935 get { return new float4(z, y, x, y); } 1936 } 1937 1938 1939 /// <summary>Swizzles the vector.</summary> 1940 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1941 public float4 zyxz 1942 { 1943 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1944 get { return new float4(z, y, x, z); } 1945 } 1946 1947 1948 /// <summary>Swizzles the vector.</summary> 1949 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1950 public float4 zyxw 1951 { 1952 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1953 get { return new float4(z, y, x, w); } 1954 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1955 set { z = value.x; y = value.y; x = value.z; w = value.w; } 1956 } 1957 1958 1959 /// <summary>Swizzles the vector.</summary> 1960 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1961 public float4 zyyx 1962 { 1963 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1964 get { return new float4(z, y, y, x); } 1965 } 1966 1967 1968 /// <summary>Swizzles the vector.</summary> 1969 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1970 public float4 zyyy 1971 { 1972 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1973 get { return new float4(z, y, y, y); } 1974 } 1975 1976 1977 /// <summary>Swizzles the vector.</summary> 1978 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1979 public float4 zyyz 1980 { 1981 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1982 get { return new float4(z, y, y, z); } 1983 } 1984 1985 1986 /// <summary>Swizzles the vector.</summary> 1987 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1988 public float4 zyyw 1989 { 1990 [MethodImpl(MethodImplOptions.AggressiveInlining)] 1991 get { return new float4(z, y, y, w); } 1992 } 1993 1994 1995 /// <summary>Swizzles the vector.</summary> 1996 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 1997 public float4 zyzx 1998 { 1999 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2000 get { return new float4(z, y, z, x); } 2001 } 2002 2003 2004 /// <summary>Swizzles the vector.</summary> 2005 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2006 public float4 zyzy 2007 { 2008 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2009 get { return new float4(z, y, z, y); } 2010 } 2011 2012 2013 /// <summary>Swizzles the vector.</summary> 2014 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2015 public float4 zyzz 2016 { 2017 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2018 get { return new float4(z, y, z, z); } 2019 } 2020 2021 2022 /// <summary>Swizzles the vector.</summary> 2023 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2024 public float4 zyzw 2025 { 2026 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2027 get { return new float4(z, y, z, w); } 2028 } 2029 2030 2031 /// <summary>Swizzles the vector.</summary> 2032 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2033 public float4 zywx 2034 { 2035 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2036 get { return new float4(z, y, w, x); } 2037 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2038 set { z = value.x; y = value.y; w = value.z; x = value.w; } 2039 } 2040 2041 2042 /// <summary>Swizzles the vector.</summary> 2043 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2044 public float4 zywy 2045 { 2046 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2047 get { return new float4(z, y, w, y); } 2048 } 2049 2050 2051 /// <summary>Swizzles the vector.</summary> 2052 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2053 public float4 zywz 2054 { 2055 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2056 get { return new float4(z, y, w, z); } 2057 } 2058 2059 2060 /// <summary>Swizzles the vector.</summary> 2061 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2062 public float4 zyww 2063 { 2064 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2065 get { return new float4(z, y, w, w); } 2066 } 2067 2068 2069 /// <summary>Swizzles the vector.</summary> 2070 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2071 public float4 zzxx 2072 { 2073 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2074 get { return new float4(z, z, x, x); } 2075 } 2076 2077 2078 /// <summary>Swizzles the vector.</summary> 2079 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2080 public float4 zzxy 2081 { 2082 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2083 get { return new float4(z, z, x, y); } 2084 } 2085 2086 2087 /// <summary>Swizzles the vector.</summary> 2088 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2089 public float4 zzxz 2090 { 2091 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2092 get { return new float4(z, z, x, z); } 2093 } 2094 2095 2096 /// <summary>Swizzles the vector.</summary> 2097 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2098 public float4 zzxw 2099 { 2100 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2101 get { return new float4(z, z, x, w); } 2102 } 2103 2104 2105 /// <summary>Swizzles the vector.</summary> 2106 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2107 public float4 zzyx 2108 { 2109 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2110 get { return new float4(z, z, y, x); } 2111 } 2112 2113 2114 /// <summary>Swizzles the vector.</summary> 2115 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2116 public float4 zzyy 2117 { 2118 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2119 get { return new float4(z, z, y, y); } 2120 } 2121 2122 2123 /// <summary>Swizzles the vector.</summary> 2124 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2125 public float4 zzyz 2126 { 2127 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2128 get { return new float4(z, z, y, z); } 2129 } 2130 2131 2132 /// <summary>Swizzles the vector.</summary> 2133 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2134 public float4 zzyw 2135 { 2136 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2137 get { return new float4(z, z, y, w); } 2138 } 2139 2140 2141 /// <summary>Swizzles the vector.</summary> 2142 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2143 public float4 zzzx 2144 { 2145 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2146 get { return new float4(z, z, z, x); } 2147 } 2148 2149 2150 /// <summary>Swizzles the vector.</summary> 2151 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2152 public float4 zzzy 2153 { 2154 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2155 get { return new float4(z, z, z, y); } 2156 } 2157 2158 2159 /// <summary>Swizzles the vector.</summary> 2160 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2161 public float4 zzzz 2162 { 2163 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2164 get { return new float4(z, z, z, z); } 2165 } 2166 2167 2168 /// <summary>Swizzles the vector.</summary> 2169 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2170 public float4 zzzw 2171 { 2172 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2173 get { return new float4(z, z, z, w); } 2174 } 2175 2176 2177 /// <summary>Swizzles the vector.</summary> 2178 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2179 public float4 zzwx 2180 { 2181 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2182 get { return new float4(z, z, w, x); } 2183 } 2184 2185 2186 /// <summary>Swizzles the vector.</summary> 2187 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2188 public float4 zzwy 2189 { 2190 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2191 get { return new float4(z, z, w, y); } 2192 } 2193 2194 2195 /// <summary>Swizzles the vector.</summary> 2196 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2197 public float4 zzwz 2198 { 2199 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2200 get { return new float4(z, z, w, z); } 2201 } 2202 2203 2204 /// <summary>Swizzles the vector.</summary> 2205 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2206 public float4 zzww 2207 { 2208 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2209 get { return new float4(z, z, w, w); } 2210 } 2211 2212 2213 /// <summary>Swizzles the vector.</summary> 2214 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2215 public float4 zwxx 2216 { 2217 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2218 get { return new float4(z, w, x, x); } 2219 } 2220 2221 2222 /// <summary>Swizzles the vector.</summary> 2223 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2224 public float4 zwxy 2225 { 2226 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2227 get { return new float4(z, w, x, y); } 2228 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2229 set { z = value.x; w = value.y; x = value.z; y = value.w; } 2230 } 2231 2232 2233 /// <summary>Swizzles the vector.</summary> 2234 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2235 public float4 zwxz 2236 { 2237 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2238 get { return new float4(z, w, x, z); } 2239 } 2240 2241 2242 /// <summary>Swizzles the vector.</summary> 2243 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2244 public float4 zwxw 2245 { 2246 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2247 get { return new float4(z, w, x, w); } 2248 } 2249 2250 2251 /// <summary>Swizzles the vector.</summary> 2252 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2253 public float4 zwyx 2254 { 2255 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2256 get { return new float4(z, w, y, x); } 2257 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2258 set { z = value.x; w = value.y; y = value.z; x = value.w; } 2259 } 2260 2261 2262 /// <summary>Swizzles the vector.</summary> 2263 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2264 public float4 zwyy 2265 { 2266 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2267 get { return new float4(z, w, y, y); } 2268 } 2269 2270 2271 /// <summary>Swizzles the vector.</summary> 2272 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2273 public float4 zwyz 2274 { 2275 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2276 get { return new float4(z, w, y, z); } 2277 } 2278 2279 2280 /// <summary>Swizzles the vector.</summary> 2281 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2282 public float4 zwyw 2283 { 2284 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2285 get { return new float4(z, w, y, w); } 2286 } 2287 2288 2289 /// <summary>Swizzles the vector.</summary> 2290 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2291 public float4 zwzx 2292 { 2293 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2294 get { return new float4(z, w, z, x); } 2295 } 2296 2297 2298 /// <summary>Swizzles the vector.</summary> 2299 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2300 public float4 zwzy 2301 { 2302 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2303 get { return new float4(z, w, z, y); } 2304 } 2305 2306 2307 /// <summary>Swizzles the vector.</summary> 2308 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2309 public float4 zwzz 2310 { 2311 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2312 get { return new float4(z, w, z, z); } 2313 } 2314 2315 2316 /// <summary>Swizzles the vector.</summary> 2317 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2318 public float4 zwzw 2319 { 2320 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2321 get { return new float4(z, w, z, w); } 2322 } 2323 2324 2325 /// <summary>Swizzles the vector.</summary> 2326 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2327 public float4 zwwx 2328 { 2329 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2330 get { return new float4(z, w, w, x); } 2331 } 2332 2333 2334 /// <summary>Swizzles the vector.</summary> 2335 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2336 public float4 zwwy 2337 { 2338 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2339 get { return new float4(z, w, w, y); } 2340 } 2341 2342 2343 /// <summary>Swizzles the vector.</summary> 2344 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2345 public float4 zwwz 2346 { 2347 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2348 get { return new float4(z, w, w, z); } 2349 } 2350 2351 2352 /// <summary>Swizzles the vector.</summary> 2353 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2354 public float4 zwww 2355 { 2356 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2357 get { return new float4(z, w, w, w); } 2358 } 2359 2360 2361 /// <summary>Swizzles the vector.</summary> 2362 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2363 public float4 wxxx 2364 { 2365 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2366 get { return new float4(w, x, x, x); } 2367 } 2368 2369 2370 /// <summary>Swizzles the vector.</summary> 2371 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2372 public float4 wxxy 2373 { 2374 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2375 get { return new float4(w, x, x, y); } 2376 } 2377 2378 2379 /// <summary>Swizzles the vector.</summary> 2380 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2381 public float4 wxxz 2382 { 2383 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2384 get { return new float4(w, x, x, z); } 2385 } 2386 2387 2388 /// <summary>Swizzles the vector.</summary> 2389 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2390 public float4 wxxw 2391 { 2392 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2393 get { return new float4(w, x, x, w); } 2394 } 2395 2396 2397 /// <summary>Swizzles the vector.</summary> 2398 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2399 public float4 wxyx 2400 { 2401 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2402 get { return new float4(w, x, y, x); } 2403 } 2404 2405 2406 /// <summary>Swizzles the vector.</summary> 2407 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2408 public float4 wxyy 2409 { 2410 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2411 get { return new float4(w, x, y, y); } 2412 } 2413 2414 2415 /// <summary>Swizzles the vector.</summary> 2416 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2417 public float4 wxyz 2418 { 2419 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2420 get { return new float4(w, x, y, z); } 2421 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2422 set { w = value.x; x = value.y; y = value.z; z = value.w; } 2423 } 2424 2425 2426 /// <summary>Swizzles the vector.</summary> 2427 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2428 public float4 wxyw 2429 { 2430 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2431 get { return new float4(w, x, y, w); } 2432 } 2433 2434 2435 /// <summary>Swizzles the vector.</summary> 2436 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2437 public float4 wxzx 2438 { 2439 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2440 get { return new float4(w, x, z, x); } 2441 } 2442 2443 2444 /// <summary>Swizzles the vector.</summary> 2445 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2446 public float4 wxzy 2447 { 2448 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2449 get { return new float4(w, x, z, y); } 2450 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2451 set { w = value.x; x = value.y; z = value.z; y = value.w; } 2452 } 2453 2454 2455 /// <summary>Swizzles the vector.</summary> 2456 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2457 public float4 wxzz 2458 { 2459 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2460 get { return new float4(w, x, z, z); } 2461 } 2462 2463 2464 /// <summary>Swizzles the vector.</summary> 2465 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2466 public float4 wxzw 2467 { 2468 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2469 get { return new float4(w, x, z, w); } 2470 } 2471 2472 2473 /// <summary>Swizzles the vector.</summary> 2474 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2475 public float4 wxwx 2476 { 2477 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2478 get { return new float4(w, x, w, x); } 2479 } 2480 2481 2482 /// <summary>Swizzles the vector.</summary> 2483 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2484 public float4 wxwy 2485 { 2486 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2487 get { return new float4(w, x, w, y); } 2488 } 2489 2490 2491 /// <summary>Swizzles the vector.</summary> 2492 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2493 public float4 wxwz 2494 { 2495 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2496 get { return new float4(w, x, w, z); } 2497 } 2498 2499 2500 /// <summary>Swizzles the vector.</summary> 2501 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2502 public float4 wxww 2503 { 2504 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2505 get { return new float4(w, x, w, w); } 2506 } 2507 2508 2509 /// <summary>Swizzles the vector.</summary> 2510 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2511 public float4 wyxx 2512 { 2513 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2514 get { return new float4(w, y, x, x); } 2515 } 2516 2517 2518 /// <summary>Swizzles the vector.</summary> 2519 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2520 public float4 wyxy 2521 { 2522 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2523 get { return new float4(w, y, x, y); } 2524 } 2525 2526 2527 /// <summary>Swizzles the vector.</summary> 2528 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2529 public float4 wyxz 2530 { 2531 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2532 get { return new float4(w, y, x, z); } 2533 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2534 set { w = value.x; y = value.y; x = value.z; z = value.w; } 2535 } 2536 2537 2538 /// <summary>Swizzles the vector.</summary> 2539 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2540 public float4 wyxw 2541 { 2542 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2543 get { return new float4(w, y, x, w); } 2544 } 2545 2546 2547 /// <summary>Swizzles the vector.</summary> 2548 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2549 public float4 wyyx 2550 { 2551 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2552 get { return new float4(w, y, y, x); } 2553 } 2554 2555 2556 /// <summary>Swizzles the vector.</summary> 2557 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2558 public float4 wyyy 2559 { 2560 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2561 get { return new float4(w, y, y, y); } 2562 } 2563 2564 2565 /// <summary>Swizzles the vector.</summary> 2566 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2567 public float4 wyyz 2568 { 2569 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2570 get { return new float4(w, y, y, z); } 2571 } 2572 2573 2574 /// <summary>Swizzles the vector.</summary> 2575 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2576 public float4 wyyw 2577 { 2578 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2579 get { return new float4(w, y, y, w); } 2580 } 2581 2582 2583 /// <summary>Swizzles the vector.</summary> 2584 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2585 public float4 wyzx 2586 { 2587 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2588 get { return new float4(w, y, z, x); } 2589 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2590 set { w = value.x; y = value.y; z = value.z; x = value.w; } 2591 } 2592 2593 2594 /// <summary>Swizzles the vector.</summary> 2595 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2596 public float4 wyzy 2597 { 2598 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2599 get { return new float4(w, y, z, y); } 2600 } 2601 2602 2603 /// <summary>Swizzles the vector.</summary> 2604 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2605 public float4 wyzz 2606 { 2607 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2608 get { return new float4(w, y, z, z); } 2609 } 2610 2611 2612 /// <summary>Swizzles the vector.</summary> 2613 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2614 public float4 wyzw 2615 { 2616 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2617 get { return new float4(w, y, z, w); } 2618 } 2619 2620 2621 /// <summary>Swizzles the vector.</summary> 2622 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2623 public float4 wywx 2624 { 2625 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2626 get { return new float4(w, y, w, x); } 2627 } 2628 2629 2630 /// <summary>Swizzles the vector.</summary> 2631 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2632 public float4 wywy 2633 { 2634 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2635 get { return new float4(w, y, w, y); } 2636 } 2637 2638 2639 /// <summary>Swizzles the vector.</summary> 2640 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2641 public float4 wywz 2642 { 2643 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2644 get { return new float4(w, y, w, z); } 2645 } 2646 2647 2648 /// <summary>Swizzles the vector.</summary> 2649 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2650 public float4 wyww 2651 { 2652 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2653 get { return new float4(w, y, w, w); } 2654 } 2655 2656 2657 /// <summary>Swizzles the vector.</summary> 2658 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2659 public float4 wzxx 2660 { 2661 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2662 get { return new float4(w, z, x, x); } 2663 } 2664 2665 2666 /// <summary>Swizzles the vector.</summary> 2667 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2668 public float4 wzxy 2669 { 2670 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2671 get { return new float4(w, z, x, y); } 2672 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2673 set { w = value.x; z = value.y; x = value.z; y = value.w; } 2674 } 2675 2676 2677 /// <summary>Swizzles the vector.</summary> 2678 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2679 public float4 wzxz 2680 { 2681 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2682 get { return new float4(w, z, x, z); } 2683 } 2684 2685 2686 /// <summary>Swizzles the vector.</summary> 2687 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2688 public float4 wzxw 2689 { 2690 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2691 get { return new float4(w, z, x, w); } 2692 } 2693 2694 2695 /// <summary>Swizzles the vector.</summary> 2696 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2697 public float4 wzyx 2698 { 2699 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2700 get { return new float4(w, z, y, x); } 2701 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2702 set { w = value.x; z = value.y; y = value.z; x = value.w; } 2703 } 2704 2705 2706 /// <summary>Swizzles the vector.</summary> 2707 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2708 public float4 wzyy 2709 { 2710 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2711 get { return new float4(w, z, y, y); } 2712 } 2713 2714 2715 /// <summary>Swizzles the vector.</summary> 2716 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2717 public float4 wzyz 2718 { 2719 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2720 get { return new float4(w, z, y, z); } 2721 } 2722 2723 2724 /// <summary>Swizzles the vector.</summary> 2725 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2726 public float4 wzyw 2727 { 2728 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2729 get { return new float4(w, z, y, w); } 2730 } 2731 2732 2733 /// <summary>Swizzles the vector.</summary> 2734 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2735 public float4 wzzx 2736 { 2737 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2738 get { return new float4(w, z, z, x); } 2739 } 2740 2741 2742 /// <summary>Swizzles the vector.</summary> 2743 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2744 public float4 wzzy 2745 { 2746 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2747 get { return new float4(w, z, z, y); } 2748 } 2749 2750 2751 /// <summary>Swizzles the vector.</summary> 2752 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2753 public float4 wzzz 2754 { 2755 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2756 get { return new float4(w, z, z, z); } 2757 } 2758 2759 2760 /// <summary>Swizzles the vector.</summary> 2761 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2762 public float4 wzzw 2763 { 2764 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2765 get { return new float4(w, z, z, w); } 2766 } 2767 2768 2769 /// <summary>Swizzles the vector.</summary> 2770 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2771 public float4 wzwx 2772 { 2773 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2774 get { return new float4(w, z, w, x); } 2775 } 2776 2777 2778 /// <summary>Swizzles the vector.</summary> 2779 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2780 public float4 wzwy 2781 { 2782 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2783 get { return new float4(w, z, w, y); } 2784 } 2785 2786 2787 /// <summary>Swizzles the vector.</summary> 2788 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2789 public float4 wzwz 2790 { 2791 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2792 get { return new float4(w, z, w, z); } 2793 } 2794 2795 2796 /// <summary>Swizzles the vector.</summary> 2797 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2798 public float4 wzww 2799 { 2800 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2801 get { return new float4(w, z, w, w); } 2802 } 2803 2804 2805 /// <summary>Swizzles the vector.</summary> 2806 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2807 public float4 wwxx 2808 { 2809 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2810 get { return new float4(w, w, x, x); } 2811 } 2812 2813 2814 /// <summary>Swizzles the vector.</summary> 2815 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2816 public float4 wwxy 2817 { 2818 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2819 get { return new float4(w, w, x, y); } 2820 } 2821 2822 2823 /// <summary>Swizzles the vector.</summary> 2824 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2825 public float4 wwxz 2826 { 2827 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2828 get { return new float4(w, w, x, z); } 2829 } 2830 2831 2832 /// <summary>Swizzles the vector.</summary> 2833 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2834 public float4 wwxw 2835 { 2836 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2837 get { return new float4(w, w, x, w); } 2838 } 2839 2840 2841 /// <summary>Swizzles the vector.</summary> 2842 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2843 public float4 wwyx 2844 { 2845 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2846 get { return new float4(w, w, y, x); } 2847 } 2848 2849 2850 /// <summary>Swizzles the vector.</summary> 2851 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2852 public float4 wwyy 2853 { 2854 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2855 get { return new float4(w, w, y, y); } 2856 } 2857 2858 2859 /// <summary>Swizzles the vector.</summary> 2860 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2861 public float4 wwyz 2862 { 2863 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2864 get { return new float4(w, w, y, z); } 2865 } 2866 2867 2868 /// <summary>Swizzles the vector.</summary> 2869 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2870 public float4 wwyw 2871 { 2872 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2873 get { return new float4(w, w, y, w); } 2874 } 2875 2876 2877 /// <summary>Swizzles the vector.</summary> 2878 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2879 public float4 wwzx 2880 { 2881 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2882 get { return new float4(w, w, z, x); } 2883 } 2884 2885 2886 /// <summary>Swizzles the vector.</summary> 2887 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2888 public float4 wwzy 2889 { 2890 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2891 get { return new float4(w, w, z, y); } 2892 } 2893 2894 2895 /// <summary>Swizzles the vector.</summary> 2896 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2897 public float4 wwzz 2898 { 2899 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2900 get { return new float4(w, w, z, z); } 2901 } 2902 2903 2904 /// <summary>Swizzles the vector.</summary> 2905 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2906 public float4 wwzw 2907 { 2908 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2909 get { return new float4(w, w, z, w); } 2910 } 2911 2912 2913 /// <summary>Swizzles the vector.</summary> 2914 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2915 public float4 wwwx 2916 { 2917 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2918 get { return new float4(w, w, w, x); } 2919 } 2920 2921 2922 /// <summary>Swizzles the vector.</summary> 2923 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2924 public float4 wwwy 2925 { 2926 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2927 get { return new float4(w, w, w, y); } 2928 } 2929 2930 2931 /// <summary>Swizzles the vector.</summary> 2932 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2933 public float4 wwwz 2934 { 2935 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2936 get { return new float4(w, w, w, z); } 2937 } 2938 2939 2940 /// <summary>Swizzles the vector.</summary> 2941 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2942 public float4 wwww 2943 { 2944 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2945 get { return new float4(w, w, w, w); } 2946 } 2947 2948 2949 /// <summary>Swizzles the vector.</summary> 2950 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2951 public float3 xxx 2952 { 2953 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2954 get { return new float3(x, x, x); } 2955 } 2956 2957 2958 /// <summary>Swizzles the vector.</summary> 2959 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2960 public float3 xxy 2961 { 2962 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2963 get { return new float3(x, x, y); } 2964 } 2965 2966 2967 /// <summary>Swizzles the vector.</summary> 2968 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2969 public float3 xxz 2970 { 2971 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2972 get { return new float3(x, x, z); } 2973 } 2974 2975 2976 /// <summary>Swizzles the vector.</summary> 2977 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2978 public float3 xxw 2979 { 2980 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2981 get { return new float3(x, x, w); } 2982 } 2983 2984 2985 /// <summary>Swizzles the vector.</summary> 2986 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2987 public float3 xyx 2988 { 2989 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2990 get { return new float3(x, y, x); } 2991 } 2992 2993 2994 /// <summary>Swizzles the vector.</summary> 2995 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 2996 public float3 xyy 2997 { 2998 [MethodImpl(MethodImplOptions.AggressiveInlining)] 2999 get { return new float3(x, y, y); } 3000 } 3001 3002 3003 /// <summary>Swizzles the vector.</summary> 3004 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3005 public float3 xyz 3006 { 3007 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3008 get { return new float3(x, y, z); } 3009 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3010 set { x = value.x; y = value.y; z = value.z; } 3011 } 3012 3013 3014 /// <summary>Swizzles the vector.</summary> 3015 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3016 public float3 xyw 3017 { 3018 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3019 get { return new float3(x, y, w); } 3020 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3021 set { x = value.x; y = value.y; w = value.z; } 3022 } 3023 3024 3025 /// <summary>Swizzles the vector.</summary> 3026 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3027 public float3 xzx 3028 { 3029 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3030 get { return new float3(x, z, x); } 3031 } 3032 3033 3034 /// <summary>Swizzles the vector.</summary> 3035 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3036 public float3 xzy 3037 { 3038 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3039 get { return new float3(x, z, y); } 3040 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3041 set { x = value.x; z = value.y; y = value.z; } 3042 } 3043 3044 3045 /// <summary>Swizzles the vector.</summary> 3046 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3047 public float3 xzz 3048 { 3049 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3050 get { return new float3(x, z, z); } 3051 } 3052 3053 3054 /// <summary>Swizzles the vector.</summary> 3055 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3056 public float3 xzw 3057 { 3058 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3059 get { return new float3(x, z, w); } 3060 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3061 set { x = value.x; z = value.y; w = value.z; } 3062 } 3063 3064 3065 /// <summary>Swizzles the vector.</summary> 3066 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3067 public float3 xwx 3068 { 3069 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3070 get { return new float3(x, w, x); } 3071 } 3072 3073 3074 /// <summary>Swizzles the vector.</summary> 3075 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3076 public float3 xwy 3077 { 3078 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3079 get { return new float3(x, w, y); } 3080 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3081 set { x = value.x; w = value.y; y = value.z; } 3082 } 3083 3084 3085 /// <summary>Swizzles the vector.</summary> 3086 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3087 public float3 xwz 3088 { 3089 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3090 get { return new float3(x, w, z); } 3091 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3092 set { x = value.x; w = value.y; z = value.z; } 3093 } 3094 3095 3096 /// <summary>Swizzles the vector.</summary> 3097 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3098 public float3 xww 3099 { 3100 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3101 get { return new float3(x, w, w); } 3102 } 3103 3104 3105 /// <summary>Swizzles the vector.</summary> 3106 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3107 public float3 yxx 3108 { 3109 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3110 get { return new float3(y, x, x); } 3111 } 3112 3113 3114 /// <summary>Swizzles the vector.</summary> 3115 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3116 public float3 yxy 3117 { 3118 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3119 get { return new float3(y, x, y); } 3120 } 3121 3122 3123 /// <summary>Swizzles the vector.</summary> 3124 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3125 public float3 yxz 3126 { 3127 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3128 get { return new float3(y, x, z); } 3129 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3130 set { y = value.x; x = value.y; z = value.z; } 3131 } 3132 3133 3134 /// <summary>Swizzles the vector.</summary> 3135 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3136 public float3 yxw 3137 { 3138 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3139 get { return new float3(y, x, w); } 3140 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3141 set { y = value.x; x = value.y; w = value.z; } 3142 } 3143 3144 3145 /// <summary>Swizzles the vector.</summary> 3146 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3147 public float3 yyx 3148 { 3149 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3150 get { return new float3(y, y, x); } 3151 } 3152 3153 3154 /// <summary>Swizzles the vector.</summary> 3155 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3156 public float3 yyy 3157 { 3158 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3159 get { return new float3(y, y, y); } 3160 } 3161 3162 3163 /// <summary>Swizzles the vector.</summary> 3164 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3165 public float3 yyz 3166 { 3167 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3168 get { return new float3(y, y, z); } 3169 } 3170 3171 3172 /// <summary>Swizzles the vector.</summary> 3173 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3174 public float3 yyw 3175 { 3176 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3177 get { return new float3(y, y, w); } 3178 } 3179 3180 3181 /// <summary>Swizzles the vector.</summary> 3182 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3183 public float3 yzx 3184 { 3185 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3186 get { return new float3(y, z, x); } 3187 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3188 set { y = value.x; z = value.y; x = value.z; } 3189 } 3190 3191 3192 /// <summary>Swizzles the vector.</summary> 3193 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3194 public float3 yzy 3195 { 3196 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3197 get { return new float3(y, z, y); } 3198 } 3199 3200 3201 /// <summary>Swizzles the vector.</summary> 3202 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3203 public float3 yzz 3204 { 3205 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3206 get { return new float3(y, z, z); } 3207 } 3208 3209 3210 /// <summary>Swizzles the vector.</summary> 3211 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3212 public float3 yzw 3213 { 3214 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3215 get { return new float3(y, z, w); } 3216 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3217 set { y = value.x; z = value.y; w = value.z; } 3218 } 3219 3220 3221 /// <summary>Swizzles the vector.</summary> 3222 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3223 public float3 ywx 3224 { 3225 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3226 get { return new float3(y, w, x); } 3227 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3228 set { y = value.x; w = value.y; x = value.z; } 3229 } 3230 3231 3232 /// <summary>Swizzles the vector.</summary> 3233 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3234 public float3 ywy 3235 { 3236 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3237 get { return new float3(y, w, y); } 3238 } 3239 3240 3241 /// <summary>Swizzles the vector.</summary> 3242 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3243 public float3 ywz 3244 { 3245 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3246 get { return new float3(y, w, z); } 3247 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3248 set { y = value.x; w = value.y; z = value.z; } 3249 } 3250 3251 3252 /// <summary>Swizzles the vector.</summary> 3253 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3254 public float3 yww 3255 { 3256 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3257 get { return new float3(y, w, w); } 3258 } 3259 3260 3261 /// <summary>Swizzles the vector.</summary> 3262 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3263 public float3 zxx 3264 { 3265 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3266 get { return new float3(z, x, x); } 3267 } 3268 3269 3270 /// <summary>Swizzles the vector.</summary> 3271 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3272 public float3 zxy 3273 { 3274 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3275 get { return new float3(z, x, y); } 3276 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3277 set { z = value.x; x = value.y; y = value.z; } 3278 } 3279 3280 3281 /// <summary>Swizzles the vector.</summary> 3282 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3283 public float3 zxz 3284 { 3285 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3286 get { return new float3(z, x, z); } 3287 } 3288 3289 3290 /// <summary>Swizzles the vector.</summary> 3291 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3292 public float3 zxw 3293 { 3294 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3295 get { return new float3(z, x, w); } 3296 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3297 set { z = value.x; x = value.y; w = value.z; } 3298 } 3299 3300 3301 /// <summary>Swizzles the vector.</summary> 3302 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3303 public float3 zyx 3304 { 3305 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3306 get { return new float3(z, y, x); } 3307 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3308 set { z = value.x; y = value.y; x = value.z; } 3309 } 3310 3311 3312 /// <summary>Swizzles the vector.</summary> 3313 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3314 public float3 zyy 3315 { 3316 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3317 get { return new float3(z, y, y); } 3318 } 3319 3320 3321 /// <summary>Swizzles the vector.</summary> 3322 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3323 public float3 zyz 3324 { 3325 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3326 get { return new float3(z, y, z); } 3327 } 3328 3329 3330 /// <summary>Swizzles the vector.</summary> 3331 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3332 public float3 zyw 3333 { 3334 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3335 get { return new float3(z, y, w); } 3336 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3337 set { z = value.x; y = value.y; w = value.z; } 3338 } 3339 3340 3341 /// <summary>Swizzles the vector.</summary> 3342 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3343 public float3 zzx 3344 { 3345 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3346 get { return new float3(z, z, x); } 3347 } 3348 3349 3350 /// <summary>Swizzles the vector.</summary> 3351 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3352 public float3 zzy 3353 { 3354 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3355 get { return new float3(z, z, y); } 3356 } 3357 3358 3359 /// <summary>Swizzles the vector.</summary> 3360 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3361 public float3 zzz 3362 { 3363 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3364 get { return new float3(z, z, z); } 3365 } 3366 3367 3368 /// <summary>Swizzles the vector.</summary> 3369 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3370 public float3 zzw 3371 { 3372 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3373 get { return new float3(z, z, w); } 3374 } 3375 3376 3377 /// <summary>Swizzles the vector.</summary> 3378 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3379 public float3 zwx 3380 { 3381 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3382 get { return new float3(z, w, x); } 3383 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3384 set { z = value.x; w = value.y; x = value.z; } 3385 } 3386 3387 3388 /// <summary>Swizzles the vector.</summary> 3389 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3390 public float3 zwy 3391 { 3392 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3393 get { return new float3(z, w, y); } 3394 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3395 set { z = value.x; w = value.y; y = value.z; } 3396 } 3397 3398 3399 /// <summary>Swizzles the vector.</summary> 3400 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3401 public float3 zwz 3402 { 3403 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3404 get { return new float3(z, w, z); } 3405 } 3406 3407 3408 /// <summary>Swizzles the vector.</summary> 3409 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3410 public float3 zww 3411 { 3412 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3413 get { return new float3(z, w, w); } 3414 } 3415 3416 3417 /// <summary>Swizzles the vector.</summary> 3418 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3419 public float3 wxx 3420 { 3421 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3422 get { return new float3(w, x, x); } 3423 } 3424 3425 3426 /// <summary>Swizzles the vector.</summary> 3427 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3428 public float3 wxy 3429 { 3430 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3431 get { return new float3(w, x, y); } 3432 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3433 set { w = value.x; x = value.y; y = value.z; } 3434 } 3435 3436 3437 /// <summary>Swizzles the vector.</summary> 3438 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3439 public float3 wxz 3440 { 3441 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3442 get { return new float3(w, x, z); } 3443 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3444 set { w = value.x; x = value.y; z = value.z; } 3445 } 3446 3447 3448 /// <summary>Swizzles the vector.</summary> 3449 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3450 public float3 wxw 3451 { 3452 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3453 get { return new float3(w, x, w); } 3454 } 3455 3456 3457 /// <summary>Swizzles the vector.</summary> 3458 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3459 public float3 wyx 3460 { 3461 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3462 get { return new float3(w, y, x); } 3463 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3464 set { w = value.x; y = value.y; x = value.z; } 3465 } 3466 3467 3468 /// <summary>Swizzles the vector.</summary> 3469 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3470 public float3 wyy 3471 { 3472 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3473 get { return new float3(w, y, y); } 3474 } 3475 3476 3477 /// <summary>Swizzles the vector.</summary> 3478 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3479 public float3 wyz 3480 { 3481 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3482 get { return new float3(w, y, z); } 3483 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3484 set { w = value.x; y = value.y; z = value.z; } 3485 } 3486 3487 3488 /// <summary>Swizzles the vector.</summary> 3489 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3490 public float3 wyw 3491 { 3492 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3493 get { return new float3(w, y, w); } 3494 } 3495 3496 3497 /// <summary>Swizzles the vector.</summary> 3498 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3499 public float3 wzx 3500 { 3501 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3502 get { return new float3(w, z, x); } 3503 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3504 set { w = value.x; z = value.y; x = value.z; } 3505 } 3506 3507 3508 /// <summary>Swizzles the vector.</summary> 3509 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3510 public float3 wzy 3511 { 3512 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3513 get { return new float3(w, z, y); } 3514 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3515 set { w = value.x; z = value.y; y = value.z; } 3516 } 3517 3518 3519 /// <summary>Swizzles the vector.</summary> 3520 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3521 public float3 wzz 3522 { 3523 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3524 get { return new float3(w, z, z); } 3525 } 3526 3527 3528 /// <summary>Swizzles the vector.</summary> 3529 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3530 public float3 wzw 3531 { 3532 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3533 get { return new float3(w, z, w); } 3534 } 3535 3536 3537 /// <summary>Swizzles the vector.</summary> 3538 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3539 public float3 wwx 3540 { 3541 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3542 get { return new float3(w, w, x); } 3543 } 3544 3545 3546 /// <summary>Swizzles the vector.</summary> 3547 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3548 public float3 wwy 3549 { 3550 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3551 get { return new float3(w, w, y); } 3552 } 3553 3554 3555 /// <summary>Swizzles the vector.</summary> 3556 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3557 public float3 wwz 3558 { 3559 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3560 get { return new float3(w, w, z); } 3561 } 3562 3563 3564 /// <summary>Swizzles the vector.</summary> 3565 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3566 public float3 www 3567 { 3568 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3569 get { return new float3(w, w, w); } 3570 } 3571 3572 3573 /// <summary>Swizzles the vector.</summary> 3574 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3575 public float2 xx 3576 { 3577 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3578 get { return new float2(x, x); } 3579 } 3580 3581 3582 /// <summary>Swizzles the vector.</summary> 3583 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3584 public float2 xy 3585 { 3586 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3587 get { return new float2(x, y); } 3588 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3589 set { x = value.x; y = value.y; } 3590 } 3591 3592 3593 /// <summary>Swizzles the vector.</summary> 3594 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3595 public float2 xz 3596 { 3597 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3598 get { return new float2(x, z); } 3599 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3600 set { x = value.x; z = value.y; } 3601 } 3602 3603 3604 /// <summary>Swizzles the vector.</summary> 3605 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3606 public float2 xw 3607 { 3608 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3609 get { return new float2(x, w); } 3610 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3611 set { x = value.x; w = value.y; } 3612 } 3613 3614 3615 /// <summary>Swizzles the vector.</summary> 3616 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3617 public float2 yx 3618 { 3619 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3620 get { return new float2(y, x); } 3621 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3622 set { y = value.x; x = value.y; } 3623 } 3624 3625 3626 /// <summary>Swizzles the vector.</summary> 3627 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3628 public float2 yy 3629 { 3630 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3631 get { return new float2(y, y); } 3632 } 3633 3634 3635 /// <summary>Swizzles the vector.</summary> 3636 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3637 public float2 yz 3638 { 3639 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3640 get { return new float2(y, z); } 3641 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3642 set { y = value.x; z = value.y; } 3643 } 3644 3645 3646 /// <summary>Swizzles the vector.</summary> 3647 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3648 public float2 yw 3649 { 3650 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3651 get { return new float2(y, w); } 3652 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3653 set { y = value.x; w = value.y; } 3654 } 3655 3656 3657 /// <summary>Swizzles the vector.</summary> 3658 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3659 public float2 zx 3660 { 3661 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3662 get { return new float2(z, x); } 3663 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3664 set { z = value.x; x = value.y; } 3665 } 3666 3667 3668 /// <summary>Swizzles the vector.</summary> 3669 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3670 public float2 zy 3671 { 3672 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3673 get { return new float2(z, y); } 3674 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3675 set { z = value.x; y = value.y; } 3676 } 3677 3678 3679 /// <summary>Swizzles the vector.</summary> 3680 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3681 public float2 zz 3682 { 3683 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3684 get { return new float2(z, z); } 3685 } 3686 3687 3688 /// <summary>Swizzles the vector.</summary> 3689 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3690 public float2 zw 3691 { 3692 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3693 get { return new float2(z, w); } 3694 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3695 set { z = value.x; w = value.y; } 3696 } 3697 3698 3699 /// <summary>Swizzles the vector.</summary> 3700 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3701 public float2 wx 3702 { 3703 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3704 get { return new float2(w, x); } 3705 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3706 set { w = value.x; x = value.y; } 3707 } 3708 3709 3710 /// <summary>Swizzles the vector.</summary> 3711 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3712 public float2 wy 3713 { 3714 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3715 get { return new float2(w, y); } 3716 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3717 set { w = value.x; y = value.y; } 3718 } 3719 3720 3721 /// <summary>Swizzles the vector.</summary> 3722 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3723 public float2 wz 3724 { 3725 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3726 get { return new float2(w, z); } 3727 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3728 set { w = value.x; z = value.y; } 3729 } 3730 3731 3732 /// <summary>Swizzles the vector.</summary> 3733 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] 3734 public float2 ww 3735 { 3736 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3737 get { return new float2(w, w); } 3738 } 3739 3740 3741 3742 /// <summary>Returns the float element at a specified index.</summary> 3743 unsafe public float this[int index] 3744 { 3745 get 3746 { 3747#if ENABLE_UNITY_COLLECTIONS_CHECKS 3748 if ((uint)index >= 4) 3749 throw new System.ArgumentException("index must be between[0...3]"); 3750#endif 3751 fixed (float4* array = &this) { return ((float*)array)[index]; } 3752 } 3753 set 3754 { 3755#if ENABLE_UNITY_COLLECTIONS_CHECKS 3756 if ((uint)index >= 4) 3757 throw new System.ArgumentException("index must be between[0...3]"); 3758#endif 3759 fixed (float* array = &x) { array[index] = value; } 3760 } 3761 } 3762 3763 /// <summary>Returns true if the float4 is equal to a given float4, false otherwise.</summary> 3764 /// <param name="rhs">Right hand side argument to compare equality with.</param> 3765 /// <returns>The result of the equality comparison.</returns> 3766 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3767 public bool Equals(float4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } 3768 3769 /// <summary>Returns true if the float4 is equal to a given float4, false otherwise.</summary> 3770 /// <param name="o">Right hand side argument to compare equality with.</param> 3771 /// <returns>The result of the equality comparison.</returns> 3772 public override bool Equals(object o) { return o is float4 converted && Equals(converted); } 3773 3774 3775 /// <summary>Returns a hash code for the float4.</summary> 3776 /// <returns>The computed hash code.</returns> 3777 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3778 public override int GetHashCode() { return (int)math.hash(this); } 3779 3780 3781 /// <summary>Returns a string representation of the float4.</summary> 3782 /// <returns>String representation of the value.</returns> 3783 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3784 public override string ToString() 3785 { 3786 return string.Format("float4({0}f, {1}f, {2}f, {3}f)", x, y, z, w); 3787 } 3788 3789 /// <summary>Returns a string representation of the float4 using a specified format and culture-specific format information.</summary> 3790 /// <param name="format">Format string to use during string formatting.</param> 3791 /// <param name="formatProvider">Format provider to use during string formatting.</param> 3792 /// <returns>String representation of the value.</returns> 3793 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3794 public string ToString(string format, IFormatProvider formatProvider) 3795 { 3796 return string.Format("float4({0}f, {1}f, {2}f, {3}f)", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider), w.ToString(format, formatProvider)); 3797 } 3798 3799 internal sealed class DebuggerProxy 3800 { 3801 public float x; 3802 public float y; 3803 public float z; 3804 public float w; 3805 public DebuggerProxy(float4 v) 3806 { 3807 x = v.x; 3808 y = v.y; 3809 z = v.z; 3810 w = v.w; 3811 } 3812 } 3813 3814 } 3815 3816 public static partial class math 3817 { 3818 /// <summary>Returns a float4 vector constructed from four float values.</summary> 3819 /// <param name="x">The constructed vector's x component will be set to this value.</param> 3820 /// <param name="y">The constructed vector's y component will be set to this value.</param> 3821 /// <param name="z">The constructed vector's z component will be set to this value.</param> 3822 /// <param name="w">The constructed vector's w component will be set to this value.</param> 3823 /// <returns>float4 constructed from arguments.</returns> 3824 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3825 public static float4 float4(float x, float y, float z, float w) { return new float4(x, y, z, w); } 3826 3827 /// <summary>Returns a float4 vector constructed from two float values and a float2 vector.</summary> 3828 /// <param name="x">The constructed vector's x component will be set to this value.</param> 3829 /// <param name="y">The constructed vector's y component will be set to this value.</param> 3830 /// <param name="zw">The constructed vector's zw components will be set to this value.</param> 3831 /// <returns>float4 constructed from arguments.</returns> 3832 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3833 public static float4 float4(float x, float y, float2 zw) { return new float4(x, y, zw); } 3834 3835 /// <summary>Returns a float4 vector constructed from a float value, a float2 vector and a float value.</summary> 3836 /// <param name="x">The constructed vector's x component will be set to this value.</param> 3837 /// <param name="yz">The constructed vector's yz components will be set to this value.</param> 3838 /// <param name="w">The constructed vector's w component will be set to this value.</param> 3839 /// <returns>float4 constructed from arguments.</returns> 3840 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3841 public static float4 float4(float x, float2 yz, float w) { return new float4(x, yz, w); } 3842 3843 /// <summary>Returns a float4 vector constructed from a float value and a float3 vector.</summary> 3844 /// <param name="x">The constructed vector's x component will be set to this value.</param> 3845 /// <param name="yzw">The constructed vector's yzw components will be set to this value.</param> 3846 /// <returns>float4 constructed from arguments.</returns> 3847 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3848 public static float4 float4(float x, float3 yzw) { return new float4(x, yzw); } 3849 3850 /// <summary>Returns a float4 vector constructed from a float2 vector and two float values.</summary> 3851 /// <param name="xy">The constructed vector's xy components will be set to this value.</param> 3852 /// <param name="z">The constructed vector's z component will be set to this value.</param> 3853 /// <param name="w">The constructed vector's w component will be set to this value.</param> 3854 /// <returns>float4 constructed from arguments.</returns> 3855 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3856 public static float4 float4(float2 xy, float z, float w) { return new float4(xy, z, w); } 3857 3858 /// <summary>Returns a float4 vector constructed from two float2 vectors.</summary> 3859 /// <param name="xy">The constructed vector's xy components will be set to this value.</param> 3860 /// <param name="zw">The constructed vector's zw components will be set to this value.</param> 3861 /// <returns>float4 constructed from arguments.</returns> 3862 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3863 public static float4 float4(float2 xy, float2 zw) { return new float4(xy, zw); } 3864 3865 /// <summary>Returns a float4 vector constructed from a float3 vector and a float value.</summary> 3866 /// <param name="xyz">The constructed vector's xyz components will be set to this value.</param> 3867 /// <param name="w">The constructed vector's w component will be set to this value.</param> 3868 /// <returns>float4 constructed from arguments.</returns> 3869 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3870 public static float4 float4(float3 xyz, float w) { return new float4(xyz, w); } 3871 3872 /// <summary>Returns a float4 vector constructed from a float4 vector.</summary> 3873 /// <param name="xyzw">The constructed vector's xyzw components will be set to this value.</param> 3874 /// <returns>float4 constructed from arguments.</returns> 3875 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3876 public static float4 float4(float4 xyzw) { return new float4(xyzw); } 3877 3878 /// <summary>Returns a float4 vector constructed from a single float value by assigning it to every component.</summary> 3879 /// <param name="v">float to convert to float4</param> 3880 /// <returns>Converted value.</returns> 3881 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3882 public static float4 float4(float v) { return new float4(v); } 3883 3884 /// <summary>Returns a float4 vector constructed from a single bool value by converting it to float and assigning it to every component.</summary> 3885 /// <param name="v">bool to convert to float4</param> 3886 /// <returns>Converted value.</returns> 3887 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3888 public static float4 float4(bool v) { return new float4(v); } 3889 3890 /// <summary>Return a float4 vector constructed from a bool4 vector by componentwise conversion.</summary> 3891 /// <param name="v">bool4 to convert to float4</param> 3892 /// <returns>Converted value.</returns> 3893 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3894 public static float4 float4(bool4 v) { return new float4(v); } 3895 3896 /// <summary>Returns a float4 vector constructed from a single int value by converting it to float and assigning it to every component.</summary> 3897 /// <param name="v">int to convert to float4</param> 3898 /// <returns>Converted value.</returns> 3899 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3900 public static float4 float4(int v) { return new float4(v); } 3901 3902 /// <summary>Return a float4 vector constructed from a int4 vector by componentwise conversion.</summary> 3903 /// <param name="v">int4 to convert to float4</param> 3904 /// <returns>Converted value.</returns> 3905 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3906 public static float4 float4(int4 v) { return new float4(v); } 3907 3908 /// <summary>Returns a float4 vector constructed from a single uint value by converting it to float and assigning it to every component.</summary> 3909 /// <param name="v">uint to convert to float4</param> 3910 /// <returns>Converted value.</returns> 3911 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3912 public static float4 float4(uint v) { return new float4(v); } 3913 3914 /// <summary>Return a float4 vector constructed from a uint4 vector by componentwise conversion.</summary> 3915 /// <param name="v">uint4 to convert to float4</param> 3916 /// <returns>Converted value.</returns> 3917 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3918 public static float4 float4(uint4 v) { return new float4(v); } 3919 3920 /// <summary>Returns a float4 vector constructed from a single half value by converting it to float and assigning it to every component.</summary> 3921 /// <param name="v">half to convert to float4</param> 3922 /// <returns>Converted value.</returns> 3923 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3924 public static float4 float4(half v) { return new float4(v); } 3925 3926 /// <summary>Return a float4 vector constructed from a half4 vector by componentwise conversion.</summary> 3927 /// <param name="v">half4 to convert to float4</param> 3928 /// <returns>Converted value.</returns> 3929 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3930 public static float4 float4(half4 v) { return new float4(v); } 3931 3932 /// <summary>Returns a float4 vector constructed from a single double value by converting it to float and assigning it to every component.</summary> 3933 /// <param name="v">double to convert to float4</param> 3934 /// <returns>Converted value.</returns> 3935 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3936 public static float4 float4(double v) { return new float4(v); } 3937 3938 /// <summary>Return a float4 vector constructed from a double4 vector by componentwise conversion.</summary> 3939 /// <param name="v">double4 to convert to float4</param> 3940 /// <returns>Converted value.</returns> 3941 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3942 public static float4 float4(double4 v) { return new float4(v); } 3943 3944 /// <summary>Returns a uint hash code of a float4 vector.</summary> 3945 /// <param name="v">Vector value to hash.</param> 3946 /// <returns>uint hash of the argument.</returns> 3947 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3948 public static uint hash(float4 v) 3949 { 3950 return csum(asuint(v) * uint4(0xE69626FFu, 0xBD010EEBu, 0x9CEDE1D1u, 0x43BE0B51u)) + 0xAF836EE1u; 3951 } 3952 3953 /// <summary> 3954 /// Returns a uint4 vector hash code of a float4 vector. 3955 /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash 3956 /// that are only reduced to a narrow uint hash at the very end instead of at every step. 3957 /// </summary> 3958 /// <param name="v">Vector value to hash.</param> 3959 /// <returns>uint4 hash of the argument.</returns> 3960 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3961 public static uint4 hashwide(float4 v) 3962 { 3963 return (asuint(v) * uint4(0xB130C137u, 0x54834775u, 0x7C022221u, 0xA2D00EDFu)) + 0xA8977779u; 3964 } 3965 3966 /// <summary>Returns the result of specified shuffling of the components from two float4 vectors into a float value.</summary> 3967 /// <param name="left">float4 to use as the left argument of the shuffle operation.</param> 3968 /// <param name="right">float4 to use as the right argument of the shuffle operation.</param> 3969 /// <param name="x">The ShuffleComponent to use when setting the resulting float.</param> 3970 /// <returns>float result of the shuffle operation.</returns> 3971 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3972 public static float shuffle(float4 left, float4 right, ShuffleComponent x) 3973 { 3974 return select_shuffle_component(left, right, x); 3975 } 3976 3977 /// <summary>Returns the result of specified shuffling of the components from two float4 vectors into a float2 vector.</summary> 3978 /// <param name="left">float4 to use as the left argument of the shuffle operation.</param> 3979 /// <param name="right">float4 to use as the right argument of the shuffle operation.</param> 3980 /// <param name="x">The ShuffleComponent to use when setting the resulting float2 x component.</param> 3981 /// <param name="y">The ShuffleComponent to use when setting the resulting float2 y component.</param> 3982 /// <returns>float2 result of the shuffle operation.</returns> 3983 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3984 public static float2 shuffle(float4 left, float4 right, ShuffleComponent x, ShuffleComponent y) 3985 { 3986 return float2( 3987 select_shuffle_component(left, right, x), 3988 select_shuffle_component(left, right, y)); 3989 } 3990 3991 /// <summary>Returns the result of specified shuffling of the components from two float4 vectors into a float3 vector.</summary> 3992 /// <param name="left">float4 to use as the left argument of the shuffle operation.</param> 3993 /// <param name="right">float4 to use as the right argument of the shuffle operation.</param> 3994 /// <param name="x">The ShuffleComponent to use when setting the resulting float3 x component.</param> 3995 /// <param name="y">The ShuffleComponent to use when setting the resulting float3 y component.</param> 3996 /// <param name="z">The ShuffleComponent to use when setting the resulting float3 z component.</param> 3997 /// <returns>float3 result of the shuffle operation.</returns> 3998 [MethodImpl(MethodImplOptions.AggressiveInlining)] 3999 public static float3 shuffle(float4 left, float4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) 4000 { 4001 return float3( 4002 select_shuffle_component(left, right, x), 4003 select_shuffle_component(left, right, y), 4004 select_shuffle_component(left, right, z)); 4005 } 4006 4007 /// <summary>Returns the result of specified shuffling of the components from two float4 vectors into a float4 vector.</summary> 4008 /// <param name="left">float4 to use as the left argument of the shuffle operation.</param> 4009 /// <param name="right">float4 to use as the right argument of the shuffle operation.</param> 4010 /// <param name="x">The ShuffleComponent to use when setting the resulting float4 x component.</param> 4011 /// <param name="y">The ShuffleComponent to use when setting the resulting float4 y component.</param> 4012 /// <param name="z">The ShuffleComponent to use when setting the resulting float4 z component.</param> 4013 /// <param name="w">The ShuffleComponent to use when setting the resulting float4 w component.</param> 4014 /// <returns>float4 result of the shuffle operation.</returns> 4015 [MethodImpl(MethodImplOptions.AggressiveInlining)] 4016 public static float4 shuffle(float4 left, float4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) 4017 { 4018 return float4( 4019 select_shuffle_component(left, right, x), 4020 select_shuffle_component(left, right, y), 4021 select_shuffle_component(left, right, z), 4022 select_shuffle_component(left, right, w)); 4023 } 4024 4025 [MethodImpl(MethodImplOptions.AggressiveInlining)] 4026 internal static float select_shuffle_component(float4 a, float4 b, ShuffleComponent component) 4027 { 4028 switch(component) 4029 { 4030 case ShuffleComponent.LeftX: 4031 return a.x; 4032 case ShuffleComponent.LeftY: 4033 return a.y; 4034 case ShuffleComponent.LeftZ: 4035 return a.z; 4036 case ShuffleComponent.LeftW: 4037 return a.w; 4038 case ShuffleComponent.RightX: 4039 return b.x; 4040 case ShuffleComponent.RightY: 4041 return b.y; 4042 case ShuffleComponent.RightZ: 4043 return b.z; 4044 case ShuffleComponent.RightW: 4045 return b.w; 4046 default: 4047 throw new System.ArgumentException("Invalid shuffle component: " + component); 4048 } 4049 } 4050 4051 } 4052}