mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
1963 lines
46 KiB
C#
1963 lines
46 KiB
C#
// <auto-generated /> - edit Vector.swizzle.tt to modify
|
|
#nullable enable
|
|
|
|
namespace Brutal.Numerics;
|
|
|
|
public partial struct sbyte4
|
|
{
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 XY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Y);
|
|
set
|
|
{
|
|
X = value.X;
|
|
Y = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 XZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Z);
|
|
set
|
|
{
|
|
X = value.X;
|
|
Z = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 YX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, X);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
X = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 YZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, Z);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
Z = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 ZX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, X);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
X = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 ZY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, Y);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
Y = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 WY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Y);
|
|
set
|
|
{
|
|
W = value.X;
|
|
Y = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 WZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Z);
|
|
set
|
|
{
|
|
W = value.X;
|
|
Z = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 YW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, W);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
W = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 ZW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, W);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
W = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 XW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, W);
|
|
set
|
|
{
|
|
X = value.X;
|
|
W = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 WX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, X);
|
|
set
|
|
{
|
|
W = value.X;
|
|
X = value.Y;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X, Y and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 XYZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Y, Z);
|
|
set
|
|
{
|
|
X = value.X;
|
|
Y = value.Y;
|
|
Z = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X, Z and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 XZY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Z, Y);
|
|
set
|
|
{
|
|
X = value.X;
|
|
Z = value.Y;
|
|
Y = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, X and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 YXZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, X, Z);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
X = value.Y;
|
|
Z = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, Z and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 YZX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, Z, X);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
Z = value.Y;
|
|
X = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, X and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 ZXY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, X, Y);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
X = value.Y;
|
|
Y = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, Y and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 ZYX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, Y, X);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
Y = value.Y;
|
|
X = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, Y and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 WYZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Y, Z);
|
|
set
|
|
{
|
|
W = value.X;
|
|
Y = value.Y;
|
|
Z = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, Z and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 WZY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Z, Y);
|
|
set
|
|
{
|
|
W = value.X;
|
|
Z = value.Y;
|
|
Y = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, W and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 YWZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, W, Z);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
W = value.Y;
|
|
Z = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, Z and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 YZW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, Z, W);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
Z = value.Y;
|
|
W = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, W and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 ZWY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, W, Y);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
W = value.Y;
|
|
Y = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, Y and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 ZYW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, Y, W);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
Y = value.Y;
|
|
W = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X, W and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 XWZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, W, Z);
|
|
set
|
|
{
|
|
X = value.X;
|
|
W = value.Y;
|
|
Z = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X, Z and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 XZW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Z, W);
|
|
set
|
|
{
|
|
X = value.X;
|
|
Z = value.Y;
|
|
W = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, X and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 WXZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, X, Z);
|
|
set
|
|
{
|
|
W = value.X;
|
|
X = value.Y;
|
|
Z = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, Z and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 WZX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Z, X);
|
|
set
|
|
{
|
|
W = value.X;
|
|
Z = value.Y;
|
|
X = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, X and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 ZXW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, X, W);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
X = value.Y;
|
|
W = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, W and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 ZWX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, W, X);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
W = value.Y;
|
|
X = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X, Y and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 XYW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Y, W);
|
|
set
|
|
{
|
|
X = value.X;
|
|
Y = value.Y;
|
|
W = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X, W and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 XWY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, W, Y);
|
|
set
|
|
{
|
|
X = value.X;
|
|
W = value.Y;
|
|
Y = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, X and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 YXW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, X, W);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
X = value.Y;
|
|
W = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, W and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 YWX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, W, X);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
W = value.Y;
|
|
X = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, X and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 WXY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, X, Y);
|
|
set
|
|
{
|
|
W = value.X;
|
|
X = value.Y;
|
|
Y = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, Y and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 WYX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Y, X);
|
|
set
|
|
{
|
|
W = value.X;
|
|
Y = value.Y;
|
|
X = value.Z;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X, Y, Z and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 XYZW
|
|
{
|
|
readonly get => this;
|
|
set => this = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X, Y, W and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 XYWZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Y, W, Z);
|
|
set
|
|
{
|
|
X = value.X;
|
|
Y = value.Y;
|
|
W = value.Z;
|
|
Z = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X, Z, Y and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 XZYW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Z, Y, W);
|
|
set
|
|
{
|
|
X = value.X;
|
|
Z = value.Y;
|
|
Y = value.Z;
|
|
W = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X, Z, W and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 XZWY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Z, W, Y);
|
|
set
|
|
{
|
|
X = value.X;
|
|
Z = value.Y;
|
|
W = value.Z;
|
|
Y = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X, W, Z and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 XWZY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, W, Z, Y);
|
|
set
|
|
{
|
|
X = value.X;
|
|
W = value.Y;
|
|
Z = value.Z;
|
|
Y = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, X, Z and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 YXZW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, X, Z, W);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
X = value.Y;
|
|
Z = value.Z;
|
|
W = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, X, W and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 YXWZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, X, W, Z);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
X = value.Y;
|
|
W = value.Z;
|
|
Z = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, Z, X and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 YZXW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, Z, X, W);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
Z = value.Y;
|
|
X = value.Z;
|
|
W = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, Z, W and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 YZWX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, Z, W, X);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
Z = value.Y;
|
|
W = value.Z;
|
|
X = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, W, X and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 YWXZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, W, X, Z);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
W = value.Y;
|
|
X = value.Z;
|
|
Z = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Y, W, Z and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 YWZX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, W, Z, X);
|
|
set
|
|
{
|
|
Y = value.X;
|
|
W = value.Y;
|
|
Z = value.Z;
|
|
X = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, X, Y and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 ZXYW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, X, Y, W);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
X = value.Y;
|
|
Y = value.Z;
|
|
W = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, X, W and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 ZXWY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, X, W, Y);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
X = value.Y;
|
|
W = value.Z;
|
|
Y = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, Y, X and W components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 ZYXW
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, Y, X, W);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
Y = value.Y;
|
|
X = value.Z;
|
|
W = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, Y, W and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 ZYWX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, Y, W, X);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
Y = value.Y;
|
|
W = value.Z;
|
|
X = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, W, X and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 ZWXY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, W, X, Y);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
W = value.Y;
|
|
X = value.Z;
|
|
Y = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Z, W, Y and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 ZWYX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, W, Y, X);
|
|
set
|
|
{
|
|
Z = value.X;
|
|
W = value.Y;
|
|
Y = value.Z;
|
|
X = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, X, Y and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 WXYZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, X, Y, Z);
|
|
set
|
|
{
|
|
W = value.X;
|
|
X = value.Y;
|
|
Y = value.Z;
|
|
Z = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, X, Z and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 WXZY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, X, Z, Y);
|
|
set
|
|
{
|
|
W = value.X;
|
|
X = value.Y;
|
|
Z = value.Z;
|
|
Y = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, Y, X and Z components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 WYXZ
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Y, X, Z);
|
|
set
|
|
{
|
|
W = value.X;
|
|
Y = value.Y;
|
|
X = value.Z;
|
|
Z = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, Y, Z and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 WYZX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Y, Z, X);
|
|
set
|
|
{
|
|
W = value.X;
|
|
Y = value.Y;
|
|
Z = value.Z;
|
|
X = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, Z, X and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 WZXY
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Z, X, Y);
|
|
set
|
|
{
|
|
W = value.X;
|
|
Z = value.Y;
|
|
X = value.Z;
|
|
Y = value.W;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the W, Z, Y and X components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 WZYX
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Z, Y, X);
|
|
set
|
|
{
|
|
W = value.X;
|
|
Z = value.Y;
|
|
Y = value.Z;
|
|
X = value.W;
|
|
}
|
|
}
|
|
}
|
|
|
|
public partial struct sbyte4
|
|
{
|
|
/// <summary>
|
|
/// The Red component of the vector (synonym for X).
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte R
|
|
{
|
|
readonly get => X;
|
|
set => X = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The Green component of the vector (synonym for Y).
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte G
|
|
{
|
|
readonly get => Y;
|
|
set => Y = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The Blue component of the vector (synonym for Z).
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte B
|
|
{
|
|
readonly get => Z;
|
|
set => Z = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The Alpha component of the vector (synonym for W).
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte A
|
|
{
|
|
readonly get => W;
|
|
set => W = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 RG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(R, G);
|
|
set
|
|
{
|
|
R = value.R;
|
|
G = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 RB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(R, B);
|
|
set
|
|
{
|
|
R = value.R;
|
|
B = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 GR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(G, R);
|
|
set
|
|
{
|
|
G = value.R;
|
|
R = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 GB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(G, B);
|
|
set
|
|
{
|
|
G = value.R;
|
|
B = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 BR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(B, R);
|
|
set
|
|
{
|
|
B = value.R;
|
|
R = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 BG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(B, G);
|
|
set
|
|
{
|
|
B = value.R;
|
|
G = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 AG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(A, G);
|
|
set
|
|
{
|
|
A = value.R;
|
|
G = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 AB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(A, B);
|
|
set
|
|
{
|
|
A = value.R;
|
|
B = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 GA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(G, A);
|
|
set
|
|
{
|
|
G = value.R;
|
|
A = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 BA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(B, A);
|
|
set
|
|
{
|
|
B = value.R;
|
|
A = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 RA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(R, A);
|
|
set
|
|
{
|
|
R = value.R;
|
|
A = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte2 AR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(A, R);
|
|
set
|
|
{
|
|
A = value.R;
|
|
R = value.G;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Green, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 RGB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(R, G, B);
|
|
set
|
|
{
|
|
R = value.R;
|
|
G = value.G;
|
|
B = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Blue, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 RBG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(R, B, G);
|
|
set
|
|
{
|
|
R = value.R;
|
|
B = value.G;
|
|
G = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Red, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 GRB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(G, R, B);
|
|
set
|
|
{
|
|
G = value.R;
|
|
R = value.G;
|
|
B = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Blue, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 GBR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(G, B, R);
|
|
set
|
|
{
|
|
G = value.R;
|
|
B = value.G;
|
|
R = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Red, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 BRG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(B, R, G);
|
|
set
|
|
{
|
|
B = value.R;
|
|
R = value.G;
|
|
G = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Green, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 BGR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(B, G, R);
|
|
set
|
|
{
|
|
B = value.R;
|
|
G = value.G;
|
|
R = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Green, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 AGB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(A, G, B);
|
|
set
|
|
{
|
|
A = value.R;
|
|
G = value.G;
|
|
B = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Blue, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 ABG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(A, B, G);
|
|
set
|
|
{
|
|
A = value.R;
|
|
B = value.G;
|
|
G = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Alpha, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 GAB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(G, A, B);
|
|
set
|
|
{
|
|
G = value.R;
|
|
A = value.G;
|
|
B = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Blue, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 GBA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(G, B, A);
|
|
set
|
|
{
|
|
G = value.R;
|
|
B = value.G;
|
|
A = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Alpha, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 BAG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(B, A, G);
|
|
set
|
|
{
|
|
B = value.R;
|
|
A = value.G;
|
|
G = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Green, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 BGA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(B, G, A);
|
|
set
|
|
{
|
|
B = value.R;
|
|
G = value.G;
|
|
A = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Alpha, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 RAB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(R, A, B);
|
|
set
|
|
{
|
|
R = value.R;
|
|
A = value.G;
|
|
B = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Blue, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 RBA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(R, B, A);
|
|
set
|
|
{
|
|
R = value.R;
|
|
B = value.G;
|
|
A = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Red, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 ARB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(A, R, B);
|
|
set
|
|
{
|
|
A = value.R;
|
|
R = value.G;
|
|
B = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Blue, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 ABR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(A, B, R);
|
|
set
|
|
{
|
|
A = value.R;
|
|
B = value.G;
|
|
R = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Red, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 BRA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(B, R, A);
|
|
set
|
|
{
|
|
B = value.R;
|
|
R = value.G;
|
|
A = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Alpha, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 BAR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(B, A, R);
|
|
set
|
|
{
|
|
B = value.R;
|
|
A = value.G;
|
|
R = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Green, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 RGA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(R, G, A);
|
|
set
|
|
{
|
|
R = value.R;
|
|
G = value.G;
|
|
A = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Alpha, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 RAG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(R, A, G);
|
|
set
|
|
{
|
|
R = value.R;
|
|
A = value.G;
|
|
G = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Red, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 GRA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(G, R, A);
|
|
set
|
|
{
|
|
G = value.R;
|
|
R = value.G;
|
|
A = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Alpha, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 GAR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(G, A, R);
|
|
set
|
|
{
|
|
G = value.R;
|
|
A = value.G;
|
|
R = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Red, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 ARG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(A, R, G);
|
|
set
|
|
{
|
|
A = value.R;
|
|
R = value.G;
|
|
G = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Green, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte3 AGR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(A, G, R);
|
|
set
|
|
{
|
|
A = value.R;
|
|
G = value.G;
|
|
R = value.B;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Green, Blue, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 RGBA
|
|
{
|
|
readonly get => this;
|
|
set => this = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Green, Alpha, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 RGAB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Y, W, Z);
|
|
set
|
|
{
|
|
R = value.R;
|
|
G = value.G;
|
|
A = value.B;
|
|
B = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Blue, Green, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 RBGA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Z, Y, W);
|
|
set
|
|
{
|
|
R = value.R;
|
|
B = value.G;
|
|
G = value.B;
|
|
A = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Blue, Alpha, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 RBAG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, Z, W, Y);
|
|
set
|
|
{
|
|
R = value.R;
|
|
B = value.G;
|
|
A = value.B;
|
|
G = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Alpha, Green, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 RAGB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, W, Y, Z);
|
|
set
|
|
{
|
|
R = value.R;
|
|
A = value.G;
|
|
G = value.B;
|
|
B = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red, Alpha, Blue, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 RABG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(X, W, Z, Y);
|
|
set
|
|
{
|
|
R = value.R;
|
|
A = value.G;
|
|
B = value.B;
|
|
G = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Red, Blue, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 GRBA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, X, Z, W);
|
|
set
|
|
{
|
|
G = value.R;
|
|
R = value.G;
|
|
B = value.B;
|
|
A = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Red, Alpha, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 GRAB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, X, W, Z);
|
|
set
|
|
{
|
|
G = value.R;
|
|
R = value.G;
|
|
A = value.B;
|
|
B = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Blue, Red, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 GBRA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, Z, X, W);
|
|
set
|
|
{
|
|
G = value.R;
|
|
B = value.G;
|
|
R = value.B;
|
|
A = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Blue, Alpha, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 GBAR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, Z, W, X);
|
|
set
|
|
{
|
|
G = value.R;
|
|
B = value.G;
|
|
A = value.B;
|
|
R = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Alpha, Red, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 GARB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, W, X, Z);
|
|
set
|
|
{
|
|
G = value.R;
|
|
A = value.G;
|
|
R = value.B;
|
|
B = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Green, Alpha, Blue, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 GABR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Y, W, Z, X);
|
|
set
|
|
{
|
|
G = value.R;
|
|
A = value.G;
|
|
B = value.B;
|
|
R = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Red, Green, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 BRGA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, X, Y, W);
|
|
set
|
|
{
|
|
B = value.R;
|
|
R = value.G;
|
|
G = value.B;
|
|
A = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Red, Alpha, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 BRAG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, X, W, Y);
|
|
set
|
|
{
|
|
B = value.R;
|
|
R = value.G;
|
|
A = value.B;
|
|
G = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Green, Red, and Alpha components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 BGRA
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, Y, X, W);
|
|
set
|
|
{
|
|
B = value.R;
|
|
G = value.G;
|
|
R = value.B;
|
|
A = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Green, Alpha, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 BGAR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, Y, W, X);
|
|
set
|
|
{
|
|
B = value.R;
|
|
G = value.G;
|
|
A = value.B;
|
|
R = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Alpha, Red, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 BARG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, W, X, Y);
|
|
set
|
|
{
|
|
B = value.R;
|
|
A = value.G;
|
|
R = value.B;
|
|
G = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Blue, Alpha, Green, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 BAGR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(Z, W, Y, X);
|
|
set
|
|
{
|
|
B = value.R;
|
|
A = value.G;
|
|
G = value.B;
|
|
R = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Red, Green, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 ARGB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, X, Y, Z);
|
|
set
|
|
{
|
|
A = value.R;
|
|
R = value.G;
|
|
G = value.B;
|
|
B = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Red, Blue, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 ARBG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, X, Z, Y);
|
|
set
|
|
{
|
|
A = value.R;
|
|
R = value.G;
|
|
B = value.B;
|
|
G = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Green, Red, and Blue components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 AGRB
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Y, X, Z);
|
|
set
|
|
{
|
|
A = value.R;
|
|
G = value.G;
|
|
R = value.B;
|
|
B = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Green, Blue, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 AGBR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Y, Z, X);
|
|
set
|
|
{
|
|
A = value.R;
|
|
G = value.G;
|
|
B = value.B;
|
|
R = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Blue, Red, and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 ABRG
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Z, X, Y);
|
|
set
|
|
{
|
|
A = value.R;
|
|
B = value.G;
|
|
R = value.B;
|
|
G = value.A;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Alpha, Blue, Green, and Red components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public sbyte4 ABGR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Z, Y, X);
|
|
set
|
|
{
|
|
A = value.R;
|
|
B = value.G;
|
|
G = value.B;
|
|
R = value.A;
|
|
}
|
|
}
|
|
}
|