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 float4
|
|
{
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the X and Y components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4
|
|
{
|
|
/// <summary>
|
|
/// The Red component of the vector (synonym for X).
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public float R
|
|
{
|
|
readonly get => X;
|
|
set => X = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The Green component of the vector (synonym for Y).
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public float G
|
|
{
|
|
readonly get => Y;
|
|
set => Y = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The Blue component of the vector (synonym for Z).
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public float B
|
|
{
|
|
readonly get => Z;
|
|
set => Z = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The Alpha component of the vector (synonym for W).
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public float A
|
|
{
|
|
readonly get => W;
|
|
set => W = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Swizzle readonly getter/setter for the Red and Green components of the vector.
|
|
/// </summary>
|
|
[XmlIgnore]
|
|
public float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float2 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float3 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 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 float4 ABGR
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
readonly get => new(W, Z, Y, X);
|
|
set
|
|
{
|
|
A = value.R;
|
|
B = value.G;
|
|
G = value.B;
|
|
R = value.A;
|
|
}
|
|
}
|
|
}
|