using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; #pragma warning disable CS0660, CS0661 namespace ComputeSharp; /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 8)] public unsafe partial struct Double1x1 { [FieldOffset(0)] private double m11; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. public Double1x1(double m11) { this.m11 = m11; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref double this[int row] => ref *(double*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// 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 Double1x1(double x) { Double1x1 matrix; matrix.m11 = x; return matrix; } /// /// 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 Float1x1(Double1x1 matrix) => 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 Int1x1(Double1x1 matrix) => 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 UInt1x1(Double1x1 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double1x1 operator -(Double1x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double1x1 operator +(Double1x1 left, Double1x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double1x1 operator /(Double1x1 left, Double1x1 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double1x1 operator %(Double1x1 left, Double1x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double1x1 operator *(Double1x1 left, Double1x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double1x1 operator -(Double1x1 left, Double1x1 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x1 operator >(Double1x1 left, Double1x1 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x1 operator >=(Double1x1 left, Double1x1 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x1 operator <(Double1x1 left, Double1x1 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x1 operator <=(Double1x1 left, Double1x1 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x1 operator ==(Double1x1 left, Double1x1 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x1 operator !=(Double1x1 left, Double1x1 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public unsafe partial struct Double1x2 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. public Double1x2(double m11, double m12) { this.m11 = m11; this.m12 = m12; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[int row] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// 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 Double1x2(double x) { Double1x2 matrix; matrix.m11 = x; matrix.m12 = x; return matrix; } /// /// 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 Float1x2(Double1x2 matrix) => 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 Int1x2(Double1x2 matrix) => 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 UInt1x2(Double1x2 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double1x2 operator -(Double1x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double1x2 operator +(Double1x2 left, Double1x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double1x2 operator /(Double1x2 left, Double1x2 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double1x2 operator %(Double1x2 left, Double1x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double1x2 operator *(Double1x2 left, Double1x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double1x2 operator -(Double1x2 left, Double1x2 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x2 operator >(Double1x2 left, Double1x2 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x2 operator >=(Double1x2 left, Double1x2 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x2 operator <(Double1x2 left, Double1x2 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x2 operator <=(Double1x2 left, Double1x2 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x2 operator ==(Double1x2 left, Double1x2 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x2 operator !=(Double1x2 left, Double1x2 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. public static implicit operator Double1x2(Double2 vector) => *(Double1x2*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 8)] public unsafe partial struct Double1x3 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; [FieldOffset(16)] private double m13; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. /// The value to assign to the component at position [1, 3]. public Double1x3(double m11, double m12, double m13) { this.m11 = m11; this.m12 = m12; this.m13 = m13; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[int row] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] public ref double M13 => ref this.m13; /// /// 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 Double1x3(double x) { Double1x3 matrix; matrix.m11 = x; matrix.m12 = x; matrix.m13 = x; return matrix; } /// /// 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 Float1x3(Double1x3 matrix) => 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 Int1x3(Double1x3 matrix) => 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 UInt1x3(Double1x3 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double1x3 operator -(Double1x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double1x3 operator +(Double1x3 left, Double1x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double1x3 operator /(Double1x3 left, Double1x3 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double1x3 operator %(Double1x3 left, Double1x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double1x3 operator *(Double1x3 left, Double1x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double1x3 operator -(Double1x3 left, Double1x3 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x3 operator >(Double1x3 left, Double1x3 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x3 operator >=(Double1x3 left, Double1x3 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x3 operator <(Double1x3 left, Double1x3 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x3 operator <=(Double1x3 left, Double1x3 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x3 operator ==(Double1x3 left, Double1x3 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x3 operator !=(Double1x3 left, Double1x3 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. public static implicit operator Double1x3(Double3 vector) => *(Double1x3*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public unsafe partial struct Double1x4 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; [FieldOffset(16)] private double m13; [FieldOffset(24)] private double m14; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. /// The value to assign to the component at position [1, 3]. /// The value to assign to the component at position [1, 4]. public Double1x4(double m11, double m12, double m13, double m14) { this.m11 = m11; this.m12 = m12; this.m13 = m13; this.m14 = m14; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double4 this[int row] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] public ref double M14 => ref this.m14; /// /// 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 Double1x4(double x) { Double1x4 matrix; matrix.m11 = x; matrix.m12 = x; matrix.m13 = x; matrix.m14 = x; return matrix; } /// /// 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 Float1x4(Double1x4 matrix) => 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 Int1x4(Double1x4 matrix) => 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 UInt1x4(Double1x4 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double1x4 operator -(Double1x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double1x4 operator +(Double1x4 left, Double1x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double1x4 operator /(Double1x4 left, Double1x4 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double1x4 operator %(Double1x4 left, Double1x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double1x4 operator *(Double1x4 left, Double1x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double1x4 operator -(Double1x4 left, Double1x4 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x4 operator >(Double1x4 left, Double1x4 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x4 operator >=(Double1x4 left, Double1x4 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x4 operator <(Double1x4 left, Double1x4 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x4 operator <=(Double1x4 left, Double1x4 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x4 operator ==(Double1x4 left, Double1x4 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool1x4 operator !=(Double1x4 left, Double1x4 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. public static implicit operator Double1x4(Double4 vector) => *(Double1x4*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public unsafe partial struct Double2x1 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m21; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [2, 1]. public Double2x1(double m11, double m21) { this.m11 = m11; this.m21 = m21; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref double this[int row] => ref *(double*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// 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 Double2x1(double x) { Double2x1 matrix; matrix.m11 = x; matrix.m21 = x; return matrix; } /// /// 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 Float2x1(Double2x1 matrix) => 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 Int2x1(Double2x1 matrix) => 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 UInt2x1(Double2x1 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double2x1 operator -(Double2x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double2x1 operator +(Double2x1 left, Double2x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double2x1 operator /(Double2x1 left, Double2x1 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double2x1 operator %(Double2x1 left, Double2x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double2x1 operator *(Double2x1 left, Double2x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double2x1 operator -(Double2x1 left, Double2x1 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x1 operator >(Double2x1 left, Double2x1 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x1 operator >=(Double2x1 left, Double2x1 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x1 operator <(Double2x1 left, Double2x1 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x1 operator <=(Double2x1 left, Double2x1 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x1 operator ==(Double2x1 left, Double2x1 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x1 operator !=(Double2x1 left, Double2x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. public static implicit operator Double2(Double2x1 matrix) => *(Double2*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public unsafe partial struct Double2x2 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; [FieldOffset(16)] private double m21; [FieldOffset(24)] private double m22; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. /// The value to assign to the component at position [2, 1]. /// The value to assign to the component at position [2, 2]. public Double2x2(double m11, double m12, double m21, double m22) { this.m11 = m11; this.m12 = m12; this.m21 = m21; this.m22 = m22; } /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the row at position [1]. /// The value to assign to the row at position [2]. public Double2x2(Double2 row1, Double2 row2) { this.m11 = row1.X; this.m12 = row1.Y; this.m21 = row2.X; this.m22 = row2.Y; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[int row] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] public ref double M22 => ref this.m22; /// /// 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 Double2x2(double x) { Double2x2 matrix; matrix.m11 = x; matrix.m12 = x; matrix.m21 = x; matrix.m22 = x; return matrix; } /// /// 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 Float2x2(Double2x2 matrix) => 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 Int2x2(Double2x2 matrix) => 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 UInt2x2(Double2x2 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double2x2 operator -(Double2x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double2x2 operator +(Double2x2 left, Double2x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double2x2 operator /(Double2x2 left, Double2x2 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double2x2 operator %(Double2x2 left, Double2x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double2x2 operator *(Double2x2 left, Double2x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double2x2 operator -(Double2x2 left, Double2x2 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x2 operator >(Double2x2 left, Double2x2 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x2 operator >=(Double2x2 left, Double2x2 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x2 operator <(Double2x2 left, Double2x2 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x2 operator <=(Double2x2 left, Double2x2 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x2 operator ==(Double2x2 left, Double2x2 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x2 operator !=(Double2x2 left, Double2x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 8)] public unsafe partial struct Double2x3 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; [FieldOffset(16)] private double m13; [FieldOffset(24)] private double m21; [FieldOffset(32)] private double m22; [FieldOffset(40)] private double m23; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. /// The value to assign to the component at position [1, 3]. /// The value to assign to the component at position [2, 1]. /// The value to assign to the component at position [2, 2]. /// The value to assign to the component at position [2, 3]. public Double2x3(double m11, double m12, double m13, double m21, double m22, double m23) { this.m11 = m11; this.m12 = m12; this.m13 = m13; this.m21 = m21; this.m22 = m22; this.m23 = m23; } /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the row at position [1]. /// The value to assign to the row at position [2]. public Double2x3(Double3 row1, Double3 row2) { this.m11 = row1.X; this.m12 = row1.Y; this.m13 = row1.Z; this.m21 = row2.X; this.m22 = row2.Y; this.m23 = row2.Z; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[int row] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] public ref double M23 => ref this.m23; /// /// 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 Double2x3(double x) { Double2x3 matrix; matrix.m11 = x; matrix.m12 = x; matrix.m13 = x; matrix.m21 = x; matrix.m22 = x; matrix.m23 = x; return matrix; } /// /// 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 Float2x3(Double2x3 matrix) => 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 Int2x3(Double2x3 matrix) => 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 UInt2x3(Double2x3 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double2x3 operator -(Double2x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double2x3 operator +(Double2x3 left, Double2x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double2x3 operator /(Double2x3 left, Double2x3 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double2x3 operator %(Double2x3 left, Double2x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double2x3 operator *(Double2x3 left, Double2x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double2x3 operator -(Double2x3 left, Double2x3 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x3 operator >(Double2x3 left, Double2x3 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x3 operator >=(Double2x3 left, Double2x3 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x3 operator <(Double2x3 left, Double2x3 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x3 operator <=(Double2x3 left, Double2x3 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x3 operator ==(Double2x3 left, Double2x3 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x3 operator !=(Double2x3 left, Double2x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 64, Pack = 8)] public unsafe partial struct Double2x4 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; [FieldOffset(16)] private double m13; [FieldOffset(24)] private double m14; [FieldOffset(32)] private double m21; [FieldOffset(40)] private double m22; [FieldOffset(48)] private double m23; [FieldOffset(56)] private double m24; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. /// The value to assign to the component at position [1, 3]. /// The value to assign to the component at position [1, 4]. /// The value to assign to the component at position [2, 1]. /// The value to assign to the component at position [2, 2]. /// The value to assign to the component at position [2, 3]. /// The value to assign to the component at position [2, 4]. public Double2x4(double m11, double m12, double m13, double m14, double m21, double m22, double m23, double m24) { this.m11 = m11; this.m12 = m12; this.m13 = m13; this.m14 = m14; this.m21 = m21; this.m22 = m22; this.m23 = m23; this.m24 = m24; } /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the row at position [1]. /// The value to assign to the row at position [2]. public Double2x4(Double4 row1, Double4 row2) { this.m11 = row1.X; this.m12 = row1.Y; this.m13 = row1.Z; this.m14 = row1.W; this.m21 = row2.X; this.m22 = row2.Y; this.m23 = row2.Z; this.m24 = row2.W; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double4 this[int row] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] public ref double M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] public ref double M24 => ref this.m24; /// /// 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 Double2x4(double x) { Double2x4 matrix; matrix.m11 = x; matrix.m12 = x; matrix.m13 = x; matrix.m14 = x; matrix.m21 = x; matrix.m22 = x; matrix.m23 = x; matrix.m24 = x; return matrix; } /// /// 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 Float2x4(Double2x4 matrix) => 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 Int2x4(Double2x4 matrix) => 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 UInt2x4(Double2x4 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double2x4 operator -(Double2x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double2x4 operator +(Double2x4 left, Double2x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double2x4 operator /(Double2x4 left, Double2x4 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double2x4 operator %(Double2x4 left, Double2x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double2x4 operator *(Double2x4 left, Double2x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double2x4 operator -(Double2x4 left, Double2x4 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x4 operator >(Double2x4 left, Double2x4 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x4 operator >=(Double2x4 left, Double2x4 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x4 operator <(Double2x4 left, Double2x4 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x4 operator <=(Double2x4 left, Double2x4 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x4 operator ==(Double2x4 left, Double2x4 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool2x4 operator !=(Double2x4 left, Double2x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 8)] public unsafe partial struct Double3x1 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m21; [FieldOffset(16)] private double m31; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [2, 1]. /// The value to assign to the component at position [3, 1]. public Double3x1(double m11, double m21, double m31) { this.m11 = m11; this.m21 = m21; this.m31 = m31; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref double this[int row] => ref *(double*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] public ref double M31 => ref this.m31; /// /// 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 Double3x1(double x) { Double3x1 matrix; matrix.m11 = x; matrix.m21 = x; matrix.m31 = x; return matrix; } /// /// 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 Float3x1(Double3x1 matrix) => 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 Int3x1(Double3x1 matrix) => 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 UInt3x1(Double3x1 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double3x1 operator -(Double3x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double3x1 operator +(Double3x1 left, Double3x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double3x1 operator /(Double3x1 left, Double3x1 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double3x1 operator %(Double3x1 left, Double3x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double3x1 operator *(Double3x1 left, Double3x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double3x1 operator -(Double3x1 left, Double3x1 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x1 operator >(Double3x1 left, Double3x1 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x1 operator >=(Double3x1 left, Double3x1 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x1 operator <(Double3x1 left, Double3x1 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x1 operator <=(Double3x1 left, Double3x1 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x1 operator ==(Double3x1 left, Double3x1 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x1 operator !=(Double3x1 left, Double3x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. public static implicit operator Double3(Double3x1 matrix) => *(Double3*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 8)] public unsafe partial struct Double3x2 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; [FieldOffset(16)] private double m21; [FieldOffset(24)] private double m22; [FieldOffset(32)] private double m31; [FieldOffset(40)] private double m32; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. /// The value to assign to the component at position [2, 1]. /// The value to assign to the component at position [2, 2]. /// The value to assign to the component at position [3, 1]. /// The value to assign to the component at position [3, 2]. public Double3x2(double m11, double m12, double m21, double m22, double m31, double m32) { this.m11 = m11; this.m12 = m12; this.m21 = m21; this.m22 = m22; this.m31 = m31; this.m32 = m32; } /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the row at position [1]. /// The value to assign to the row at position [2]. /// The value to assign to the row at position [3]. public Double3x2(Double2 row1, Double2 row2, Double2 row3) { this.m11 = row1.X; this.m12 = row1.Y; this.m21 = row2.X; this.m22 = row2.Y; this.m31 = row3.X; this.m32 = row3.Y; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[int row] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] public ref double M32 => ref this.m32; /// /// 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 Double3x2(double x) { Double3x2 matrix; matrix.m11 = x; matrix.m12 = x; matrix.m21 = x; matrix.m22 = x; matrix.m31 = x; matrix.m32 = x; return matrix; } /// /// 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 Float3x2(Double3x2 matrix) => 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 Int3x2(Double3x2 matrix) => 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 UInt3x2(Double3x2 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double3x2 operator -(Double3x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double3x2 operator +(Double3x2 left, Double3x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double3x2 operator /(Double3x2 left, Double3x2 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double3x2 operator %(Double3x2 left, Double3x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double3x2 operator *(Double3x2 left, Double3x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double3x2 operator -(Double3x2 left, Double3x2 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x2 operator >(Double3x2 left, Double3x2 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x2 operator >=(Double3x2 left, Double3x2 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x2 operator <(Double3x2 left, Double3x2 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x2 operator <=(Double3x2 left, Double3x2 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x2 operator ==(Double3x2 left, Double3x2 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x2 operator !=(Double3x2 left, Double3x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 72, Pack = 8)] public unsafe partial struct Double3x3 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; [FieldOffset(16)] private double m13; [FieldOffset(24)] private double m21; [FieldOffset(32)] private double m22; [FieldOffset(40)] private double m23; [FieldOffset(48)] private double m31; [FieldOffset(56)] private double m32; [FieldOffset(64)] private double m33; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. /// The value to assign to the component at position [1, 3]. /// The value to assign to the component at position [2, 1]. /// The value to assign to the component at position [2, 2]. /// The value to assign to the component at position [2, 3]. /// The value to assign to the component at position [3, 1]. /// The value to assign to the component at position [3, 2]. /// The value to assign to the component at position [3, 3]. public Double3x3(double m11, double m12, double m13, double m21, double m22, double m23, double m31, double m32, double m33) { this.m11 = m11; this.m12 = m12; this.m13 = m13; this.m21 = m21; this.m22 = m22; this.m23 = m23; this.m31 = m31; this.m32 = m32; this.m33 = m33; } /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the row at position [1]. /// The value to assign to the row at position [2]. /// The value to assign to the row at position [3]. public Double3x3(Double3 row1, Double3 row2, Double3 row3) { this.m11 = row1.X; this.m12 = row1.Y; this.m13 = row1.Z; this.m21 = row2.X; this.m22 = row2.Y; this.m23 = row2.Z; this.m31 = row3.X; this.m32 = row3.Y; this.m33 = row3.Z; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[int row] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] public ref double M33 => ref this.m33; /// /// 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 Double3x3(double x) { Double3x3 matrix; matrix.m11 = x; matrix.m12 = x; matrix.m13 = x; matrix.m21 = x; matrix.m22 = x; matrix.m23 = x; matrix.m31 = x; matrix.m32 = x; matrix.m33 = x; return matrix; } /// /// 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 Float3x3(Double3x3 matrix) => 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 Int3x3(Double3x3 matrix) => 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 UInt3x3(Double3x3 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double3x3 operator -(Double3x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double3x3 operator +(Double3x3 left, Double3x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double3x3 operator /(Double3x3 left, Double3x3 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double3x3 operator %(Double3x3 left, Double3x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double3x3 operator *(Double3x3 left, Double3x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double3x3 operator -(Double3x3 left, Double3x3 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x3 operator >(Double3x3 left, Double3x3 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x3 operator >=(Double3x3 left, Double3x3 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x3 operator <(Double3x3 left, Double3x3 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x3 operator <=(Double3x3 left, Double3x3 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x3 operator ==(Double3x3 left, Double3x3 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x3 operator !=(Double3x3 left, Double3x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 96, Pack = 8)] public unsafe partial struct Double3x4 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; [FieldOffset(16)] private double m13; [FieldOffset(24)] private double m14; [FieldOffset(32)] private double m21; [FieldOffset(40)] private double m22; [FieldOffset(48)] private double m23; [FieldOffset(56)] private double m24; [FieldOffset(64)] private double m31; [FieldOffset(72)] private double m32; [FieldOffset(80)] private double m33; [FieldOffset(88)] private double m34; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. /// The value to assign to the component at position [1, 3]. /// The value to assign to the component at position [1, 4]. /// The value to assign to the component at position [2, 1]. /// The value to assign to the component at position [2, 2]. /// The value to assign to the component at position [2, 3]. /// The value to assign to the component at position [2, 4]. /// The value to assign to the component at position [3, 1]. /// The value to assign to the component at position [3, 2]. /// The value to assign to the component at position [3, 3]. /// The value to assign to the component at position [3, 4]. public Double3x4(double m11, double m12, double m13, double m14, double m21, double m22, double m23, double m24, double m31, double m32, double m33, double m34) { this.m11 = m11; this.m12 = m12; this.m13 = m13; this.m14 = m14; this.m21 = m21; this.m22 = m22; this.m23 = m23; this.m24 = m24; this.m31 = m31; this.m32 = m32; this.m33 = m33; this.m34 = m34; } /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the row at position [1]. /// The value to assign to the row at position [2]. /// The value to assign to the row at position [3]. public Double3x4(Double4 row1, Double4 row2, Double4 row3) { this.m11 = row1.X; this.m12 = row1.Y; this.m13 = row1.Z; this.m14 = row1.W; this.m21 = row2.X; this.m22 = row2.Y; this.m23 = row2.Z; this.m24 = row2.W; this.m31 = row3.X; this.m32 = row3.Y; this.m33 = row3.Z; this.m34 = row3.W; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double4 this[int row] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] public ref double M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] public ref double M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] public ref double M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] public ref double M34 => ref this.m34; /// /// 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 Double3x4(double x) { Double3x4 matrix; matrix.m11 = x; matrix.m12 = x; matrix.m13 = x; matrix.m14 = x; matrix.m21 = x; matrix.m22 = x; matrix.m23 = x; matrix.m24 = x; matrix.m31 = x; matrix.m32 = x; matrix.m33 = x; matrix.m34 = x; return matrix; } /// /// 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 Float3x4(Double3x4 matrix) => 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 Int3x4(Double3x4 matrix) => 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 UInt3x4(Double3x4 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double3x4 operator -(Double3x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double3x4 operator +(Double3x4 left, Double3x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double3x4 operator /(Double3x4 left, Double3x4 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double3x4 operator %(Double3x4 left, Double3x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double3x4 operator *(Double3x4 left, Double3x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double3x4 operator -(Double3x4 left, Double3x4 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x4 operator >(Double3x4 left, Double3x4 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x4 operator >=(Double3x4 left, Double3x4 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x4 operator <(Double3x4 left, Double3x4 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x4 operator <=(Double3x4 left, Double3x4 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x4 operator ==(Double3x4 left, Double3x4 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool3x4 operator !=(Double3x4 left, Double3x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public unsafe partial struct Double4x1 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m21; [FieldOffset(16)] private double m31; [FieldOffset(24)] private double m41; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [2, 1]. /// The value to assign to the component at position [3, 1]. /// The value to assign to the component at position [4, 1]. public Double4x1(double m11, double m21, double m31, double m41) { this.m11 = m11; this.m21 = m21; this.m31 = m31; this.m41 = m41; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref double this[int row] => ref *(double*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] public ref double M41 => ref this.m41; /// /// 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 Double4x1(double x) { Double4x1 matrix; matrix.m11 = x; matrix.m21 = x; matrix.m31 = x; matrix.m41 = x; return matrix; } /// /// 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 Float4x1(Double4x1 matrix) => 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 Int4x1(Double4x1 matrix) => 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 UInt4x1(Double4x1 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double4x1 operator -(Double4x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double4x1 operator +(Double4x1 left, Double4x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double4x1 operator /(Double4x1 left, Double4x1 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double4x1 operator %(Double4x1 left, Double4x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double4x1 operator *(Double4x1 left, Double4x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double4x1 operator -(Double4x1 left, Double4x1 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x1 operator >(Double4x1 left, Double4x1 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x1 operator >=(Double4x1 left, Double4x1 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x1 operator <(Double4x1 left, Double4x1 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x1 operator <=(Double4x1 left, Double4x1 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x1 operator ==(Double4x1 left, Double4x1 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x1 operator !=(Double4x1 left, Double4x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. public static implicit operator Double4(Double4x1 matrix) => *(Double4*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 64, Pack = 8)] public unsafe partial struct Double4x2 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; [FieldOffset(16)] private double m21; [FieldOffset(24)] private double m22; [FieldOffset(32)] private double m31; [FieldOffset(40)] private double m32; [FieldOffset(48)] private double m41; [FieldOffset(56)] private double m42; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. /// The value to assign to the component at position [2, 1]. /// The value to assign to the component at position [2, 2]. /// The value to assign to the component at position [3, 1]. /// The value to assign to the component at position [3, 2]. /// The value to assign to the component at position [4, 1]. /// The value to assign to the component at position [4, 2]. public Double4x2(double m11, double m12, double m21, double m22, double m31, double m32, double m41, double m42) { this.m11 = m11; this.m12 = m12; this.m21 = m21; this.m22 = m22; this.m31 = m31; this.m32 = m32; this.m41 = m41; this.m42 = m42; } /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the row at position [1]. /// The value to assign to the row at position [2]. /// The value to assign to the row at position [3]. /// The value to assign to the row at position [4]. public Double4x2(Double2 row1, Double2 row2, Double2 row3, Double2 row4) { this.m11 = row1.X; this.m12 = row1.Y; this.m21 = row2.X; this.m22 = row2.Y; this.m31 = row3.X; this.m32 = row3.Y; this.m41 = row4.X; this.m42 = row4.Y; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[int row] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] public ref double M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] public ref double M42 => ref this.m42; /// /// 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 Double4x2(double x) { Double4x2 matrix; matrix.m11 = x; matrix.m12 = x; matrix.m21 = x; matrix.m22 = x; matrix.m31 = x; matrix.m32 = x; matrix.m41 = x; matrix.m42 = x; return matrix; } /// /// 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 Float4x2(Double4x2 matrix) => 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 Int4x2(Double4x2 matrix) => 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 UInt4x2(Double4x2 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double4x2 operator -(Double4x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double4x2 operator +(Double4x2 left, Double4x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double4x2 operator /(Double4x2 left, Double4x2 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double4x2 operator %(Double4x2 left, Double4x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double4x2 operator *(Double4x2 left, Double4x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double4x2 operator -(Double4x2 left, Double4x2 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x2 operator >(Double4x2 left, Double4x2 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x2 operator >=(Double4x2 left, Double4x2 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x2 operator <(Double4x2 left, Double4x2 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x2 operator <=(Double4x2 left, Double4x2 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x2 operator ==(Double4x2 left, Double4x2 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x2 operator !=(Double4x2 left, Double4x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 96, Pack = 8)] public unsafe partial struct Double4x3 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; [FieldOffset(16)] private double m13; [FieldOffset(24)] private double m21; [FieldOffset(32)] private double m22; [FieldOffset(40)] private double m23; [FieldOffset(48)] private double m31; [FieldOffset(56)] private double m32; [FieldOffset(64)] private double m33; [FieldOffset(72)] private double m41; [FieldOffset(80)] private double m42; [FieldOffset(88)] private double m43; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. /// The value to assign to the component at position [1, 3]. /// The value to assign to the component at position [2, 1]. /// The value to assign to the component at position [2, 2]. /// The value to assign to the component at position [2, 3]. /// The value to assign to the component at position [3, 1]. /// The value to assign to the component at position [3, 2]. /// The value to assign to the component at position [3, 3]. /// The value to assign to the component at position [4, 1]. /// The value to assign to the component at position [4, 2]. /// The value to assign to the component at position [4, 3]. public Double4x3(double m11, double m12, double m13, double m21, double m22, double m23, double m31, double m32, double m33, double m41, double m42, double m43) { this.m11 = m11; this.m12 = m12; this.m13 = m13; this.m21 = m21; this.m22 = m22; this.m23 = m23; this.m31 = m31; this.m32 = m32; this.m33 = m33; this.m41 = m41; this.m42 = m42; this.m43 = m43; } /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the row at position [1]. /// The value to assign to the row at position [2]. /// The value to assign to the row at position [3]. /// The value to assign to the row at position [4]. public Double4x3(Double3 row1, Double3 row2, Double3 row3, Double3 row4) { this.m11 = row1.X; this.m12 = row1.Y; this.m13 = row1.Z; this.m21 = row2.X; this.m22 = row2.Y; this.m23 = row2.Z; this.m31 = row3.X; this.m32 = row3.Y; this.m33 = row3.Z; this.m41 = row4.X; this.m42 = row4.Y; this.m43 = row4.Z; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[int row] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] public ref double M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] public ref double M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] public ref double M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] public ref double M43 => ref this.m43; /// /// 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 Double4x3(double x) { Double4x3 matrix; matrix.m11 = x; matrix.m12 = x; matrix.m13 = x; matrix.m21 = x; matrix.m22 = x; matrix.m23 = x; matrix.m31 = x; matrix.m32 = x; matrix.m33 = x; matrix.m41 = x; matrix.m42 = x; matrix.m43 = x; return matrix; } /// /// 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 Float4x3(Double4x3 matrix) => 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 Int4x3(Double4x3 matrix) => 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 UInt4x3(Double4x3 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double4x3 operator -(Double4x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double4x3 operator +(Double4x3 left, Double4x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double4x3 operator /(Double4x3 left, Double4x3 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double4x3 operator %(Double4x3 left, Double4x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double4x3 operator *(Double4x3 left, Double4x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double4x3 operator -(Double4x3 left, Double4x3 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x3 operator >(Double4x3 left, Double4x3 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x3 operator >=(Double4x3 left, Double4x3 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x3 operator <(Double4x3 left, Double4x3 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x3 operator <=(Double4x3 left, Double4x3 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x3 operator ==(Double4x3 left, Double4x3 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x3 operator !=(Double4x3 left, Double4x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 128, Pack = 8)] public unsafe partial struct Double4x4 { [FieldOffset(0)] private double m11; [FieldOffset(8)] private double m12; [FieldOffset(16)] private double m13; [FieldOffset(24)] private double m14; [FieldOffset(32)] private double m21; [FieldOffset(40)] private double m22; [FieldOffset(48)] private double m23; [FieldOffset(56)] private double m24; [FieldOffset(64)] private double m31; [FieldOffset(72)] private double m32; [FieldOffset(80)] private double m33; [FieldOffset(88)] private double m34; [FieldOffset(96)] private double m41; [FieldOffset(104)] private double m42; [FieldOffset(112)] private double m43; [FieldOffset(120)] private double m44; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the component at position [1, 1]. /// The value to assign to the component at position [1, 2]. /// The value to assign to the component at position [1, 3]. /// The value to assign to the component at position [1, 4]. /// The value to assign to the component at position [2, 1]. /// The value to assign to the component at position [2, 2]. /// The value to assign to the component at position [2, 3]. /// The value to assign to the component at position [2, 4]. /// The value to assign to the component at position [3, 1]. /// The value to assign to the component at position [3, 2]. /// The value to assign to the component at position [3, 3]. /// The value to assign to the component at position [3, 4]. /// The value to assign to the component at position [4, 1]. /// The value to assign to the component at position [4, 2]. /// The value to assign to the component at position [4, 3]. /// The value to assign to the component at position [4, 4]. public Double4x4(double m11, double m12, double m13, double m14, double m21, double m22, double m23, double m24, double m31, double m32, double m33, double m34, double m41, double m42, double m43, double m44) { this.m11 = m11; this.m12 = m12; this.m13 = m13; this.m14 = m14; this.m21 = m21; this.m22 = m22; this.m23 = m23; this.m24 = m24; this.m31 = m31; this.m32 = m32; this.m33 = m33; this.m34 = m34; this.m41 = m41; this.m42 = m42; this.m43 = m43; this.m44 = m44; } /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the row at position [1]. /// The value to assign to the row at position [2]. /// The value to assign to the row at position [3]. /// The value to assign to the row at position [4]. public Double4x4(Double4 row1, Double4 row2, Double4 row3, Double4 row4) { this.m11 = row1.X; this.m12 = row1.Y; this.m13 = row1.Z; this.m14 = row1.W; this.m21 = row2.X; this.m22 = row2.Y; this.m23 = row2.Z; this.m24 = row2.W; this.m31 = row3.X; this.m32 = row3.Y; this.m33 = row3.Z; this.m34 = row3.W; this.m41 = row4.X; this.m42 = row4.Y; this.m43 = row4.Z; this.m44 = row4.W; } /// /// Gets a reference to a specific row in the current instance. /// /// The row to access. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double4 this[int row] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// [UnscopedRef] public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. /// /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. /// s [UnscopedRef] public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] public ref double M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] public ref double M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] public ref double M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] public ref double M34 => ref this.m34; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] public ref double M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] public ref double M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] public ref double M43 => ref this.m43; /// /// Gets a reference to the value representing the component at position [4, 4]. /// [UnscopedRef] public ref double M44 => ref this.m44; /// /// 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 Double4x4(double x) { Double4x4 matrix; matrix.m11 = x; matrix.m12 = x; matrix.m13 = x; matrix.m14 = x; matrix.m21 = x; matrix.m22 = x; matrix.m23 = x; matrix.m24 = x; matrix.m31 = x; matrix.m32 = x; matrix.m33 = x; matrix.m34 = x; matrix.m41 = x; matrix.m42 = x; matrix.m43 = x; matrix.m44 = x; return matrix; } /// /// 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 Float4x4(Double4x4 matrix) => 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 Int4x4(Double4x4 matrix) => 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 UInt4x4(Double4x4 matrix) => default; /// /// Negates a value. /// /// The value to negate. /// 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 Double4x4 operator -(Double4x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// 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 Double4x4 operator +(Double4x4 left, Double4x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// 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 Double4x4 operator /(Double4x4 left, Double4x4 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// 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 Double4x4 operator %(Double4x4 left, Double4x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// 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 Double4x4 operator *(Double4x4 left, Double4x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// 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 Double4x4 operator -(Double4x4 left, Double4x4 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x4 operator >(Double4x4 left, Double4x4 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x4 operator >=(Double4x4 left, Double4x4 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x4 operator <(Double4x4 left, Double4x4 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x4 operator <=(Double4x4 left, Double4x4 right) => default; /// /// Compares two values to see if they are equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x4 operator ==(Double4x4 left, Double4x4 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// 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 Bool4x4 operator !=(Double4x4 left, Double4x4 right) => default; }