#pragma warning disable CS0660, CS0661
namespace ComputeSharp;
///
/// A that maps the HLSL type.
///
public partial struct Double3
{
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the first vector component.
/// The value to assign to the second vector component.
/// The value to assign to the third vector component.
public Double3(double x, double y, double z)
{
this.x = x;
this.y = y;
this.z = z;
}
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the first and second vector components.
/// The value to assign to the third vector component.
public Double3(Double2 xy, double z)
{
this.x = xy.X;
this.y = xy.Y;
this.z = z;
}
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the first vector component.
/// The value to assign to the second and thirt vector components.
public Double3(double x, Double2 yz)
{
this.x = x;
this.y = yz.X;
this.z = yz.Y;
}
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Double3(double x) => new(x, x, x);
///
/// Casts a value to a one.
///
/// The input value to cast.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static explicit operator Int3(Double3 xyz) => default;
///
/// Casts a value to a one.
///
/// The input value to cast.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static explicit operator UInt3(Double3 xyz) => default;
///
/// Casts a value to a one.
///
/// The input value to cast.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static explicit operator Float3(Double3 xyz) => default;
}