Added Double2, Double3 and Double4 structs
このコミットが含まれているのは:
1 親
b1a2601be4
コミット
93bf73f259
3ファイル変更
+4601
検索条件に一致するファイルはありません
@@ -0,0 +1,123 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Graphics.Exceptions;
|
||||
|
||||
namespace ComputeSharp.Shaders.Primitives.Double
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the double2 HLSL type
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 2)]
|
||||
public struct Double2
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="Double2"/> instance with the specified parameters
|
||||
/// </summary>
|
||||
/// <param name="x">The value to assign to the first vector component</param>
|
||||
/// <param name="y">The value to assign to the second vector component</param>
|
||||
public Double2(double x, double y)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the first vector component
|
||||
/// </summary>
|
||||
public double X { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the second vector component
|
||||
/// </summary>
|
||||
public double Y { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the first color component
|
||||
/// </summary>
|
||||
public double R
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(R)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(R)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the second color component
|
||||
/// </summary>
|
||||
public double G
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(G)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(G)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a specific component in the current <see cref="Double2"/> instance
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access</param>
|
||||
public double this[int i]
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double2)}[int]");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double2)}[int]");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 XX => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(XX)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Y"/> values
|
||||
/// </summary>
|
||||
public Double2 XY
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(XY)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(XY)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="X"/> values
|
||||
/// </summary>
|
||||
public Double2 YX
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(YX)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(YX)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 YY => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(YY)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="R"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 RR => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(RR)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="G"/> values
|
||||
/// </summary>
|
||||
public Double2 RG
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(RG)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(RG)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="R"/> values
|
||||
/// </summary>
|
||||
public Double2 GR
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(GR)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(GR)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 GG => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(GG)}");
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="Double2"/> value with the same value for all its components
|
||||
/// </summary>
|
||||
/// <param name="x">The value to use for the components of the new <see cref="Double2"/> instance</param>
|
||||
public static implicit operator Double2(double x) => new Double2(x, x);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,539 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Graphics.Exceptions;
|
||||
|
||||
namespace ComputeSharp.Shaders.Primitives.Double
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the double3 HLSL type
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 3)]
|
||||
public struct Double3
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="Double3"/> instance with the specified parameters
|
||||
/// </summary>
|
||||
/// <param name="x">The value to assign to the first vector component</param>
|
||||
/// <param name="y">The value to assign to the second vector component</param>
|
||||
/// <param name="z">The value to assign to the third vector component</param>
|
||||
public Double3(double x, double y, double z)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
Z = z;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the first vector component
|
||||
/// </summary>
|
||||
public double X { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the second vector component
|
||||
/// </summary>
|
||||
public double Y { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the third vector component
|
||||
/// </summary>
|
||||
public double Z { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the first color component
|
||||
/// </summary>
|
||||
public double R
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(R)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(R)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the second color component
|
||||
/// </summary>
|
||||
public double G
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(G)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(G)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the third color component
|
||||
/// </summary>
|
||||
public double B
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(B)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(B)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a specific component in the current <see cref="Double3"/> instance
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access</param>
|
||||
public double this[int i]
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}[int]");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}[int]");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 XX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XX)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Y"/> values
|
||||
/// </summary>
|
||||
public Double2 XY
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XY)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XY)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Z"/> values
|
||||
/// </summary>
|
||||
public Double2 XZ
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZ)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZ)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="X"/> values
|
||||
/// </summary>
|
||||
public Double2 YX
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YX)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YX)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 YY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YY)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="Z"/> values
|
||||
/// </summary>
|
||||
public Double2 YZ
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZ)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZ)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Z"/> and <see cref="X"/> values
|
||||
/// </summary>
|
||||
public Double2 ZX
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZX)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZX)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Z"/> and <see cref="Y"/> values
|
||||
/// </summary>
|
||||
public Double2 ZY
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZY)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZY)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="Z"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 ZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZ)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="R"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 RR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RR)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="G"/> values
|
||||
/// </summary>
|
||||
public Double2 RG
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RG)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RG)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="B"/> values
|
||||
/// </summary>
|
||||
public Double2 RB
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RB)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RB)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="R"/> values
|
||||
/// </summary>
|
||||
public Double2 GR
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GR)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GR)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 GG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GG)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="B"/> values
|
||||
/// </summary>
|
||||
public Double2 GB
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GB)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GB)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="B"/> and <see cref="R"/> values
|
||||
/// </summary>
|
||||
public Double2 BR
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BR)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BR)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double2"/> value with the <see cref="B"/> and <see cref="G"/> values
|
||||
/// </summary>
|
||||
public Double2 BG
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BG)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BG)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double2"/> value with the <see cref="B"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 BB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BB)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="X"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 XXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXX)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values
|
||||
/// </summary>
|
||||
public Double2 XXY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXY)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values
|
||||
/// </summary>
|
||||
public Double2 XXZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXZ)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values
|
||||
/// </summary>
|
||||
public Double2 XYX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYX)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values
|
||||
/// </summary>
|
||||
public Double2 XYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYY)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values
|
||||
/// </summary>
|
||||
public Double2 XYZ
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYZ)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYZ)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values
|
||||
/// </summary>
|
||||
public Double2 XZX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZX)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values
|
||||
/// </summary>
|
||||
public Double2 XZY
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZY)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZY)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values
|
||||
/// </summary>
|
||||
public Double2 XZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZZ)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values
|
||||
/// </summary>
|
||||
public Double2 YXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXX)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values
|
||||
/// </summary>
|
||||
public Double2 YXY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXY)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values
|
||||
/// </summary>
|
||||
public Double2 YXZ
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXZ)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXZ)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values
|
||||
/// </summary>
|
||||
public Double2 YYX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYX)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 YYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYY)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values
|
||||
/// </summary>
|
||||
public Double2 YYZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYZ)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values
|
||||
/// </summary>
|
||||
public Double2 YZX
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZX)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZX)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values
|
||||
/// </summary>
|
||||
public Double2 YZY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZY)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values
|
||||
/// </summary>
|
||||
public Double2 YZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZZ)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values
|
||||
/// </summary>
|
||||
public Double2 ZXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXX)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values
|
||||
/// </summary>
|
||||
public Double2 ZXY
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXY)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXY)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values
|
||||
/// </summary>
|
||||
public Double2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXZ)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values
|
||||
/// </summary>
|
||||
public Double2 ZYX
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYX)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYX)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values
|
||||
/// </summary>
|
||||
public Double2 ZYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYY)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values
|
||||
/// </summary>
|
||||
public Double2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYZ)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values
|
||||
/// </summary>
|
||||
public Double2 ZZX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZX)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values
|
||||
/// </summary>
|
||||
public Double2 ZZY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZY)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZZ)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="R"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 RRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRR)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values
|
||||
/// </summary>
|
||||
public Double2 RRG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRG)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values
|
||||
/// </summary>
|
||||
public Double2 RRB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRB)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values
|
||||
/// </summary>
|
||||
public Double2 RGR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGR)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values
|
||||
/// </summary>
|
||||
public Double2 RGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGG)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values
|
||||
/// </summary>
|
||||
public Double2 RGB
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGB)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGB)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values
|
||||
/// </summary>
|
||||
public Double2 RBR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBR)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values
|
||||
/// </summary>
|
||||
public Double2 RBG
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBG)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBG)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values
|
||||
/// </summary>
|
||||
public Double2 RBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBB)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values
|
||||
/// </summary>
|
||||
public Double2 GRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRR)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values
|
||||
/// </summary>
|
||||
public Double2 GRG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRG)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values
|
||||
/// </summary>
|
||||
public Double2 GRB
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRB)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRB)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values
|
||||
/// </summary>
|
||||
public Double2 GGR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGR)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="G"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 GGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGG)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values
|
||||
/// </summary>
|
||||
public Double2 GGB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGB)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values
|
||||
/// </summary>
|
||||
public Double2 GBR
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBR)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBR)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values
|
||||
/// </summary>
|
||||
public Double2 GBG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBG)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values
|
||||
/// </summary>
|
||||
public Double2 GBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBB)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values
|
||||
/// </summary>
|
||||
public Double2 BRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRR)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values
|
||||
/// </summary>
|
||||
public Double2 BRG
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRG)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRG)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values
|
||||
/// </summary>
|
||||
public Double2 BRB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRB)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values
|
||||
/// </summary>
|
||||
public Double2 BGR
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGR)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGR)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values
|
||||
/// </summary>
|
||||
public Double2 BGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGG)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values
|
||||
/// </summary>
|
||||
public Double2 BGB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGB)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values
|
||||
/// </summary>
|
||||
public Double2 BBR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBR)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values
|
||||
/// </summary>
|
||||
public Double2 BBG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBG)}");
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="Double3"/> value with the <see cref="B"/> value for all components
|
||||
/// </summary>
|
||||
public Double2 BBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBB)}");
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="Double3"/> value with the same value for all its components
|
||||
/// </summary>
|
||||
/// <param name="x">The value to use for the components of the new <see cref="Double3"/> instance</param>
|
||||
public static implicit operator Double3(double x) => new Double3(x, x, x);
|
||||
}
|
||||
}
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
新しいイシューから参照
ユーザーをブロックする