Пример #1
0
 public static void AreEqual(uint4x4 a, uint4x4 b)
 {
     AreEqual(a.c0, b.c0);
     AreEqual(a.c1, b.c1);
     AreEqual(a.c2, b.c2);
     AreEqual(a.c3, b.c3);
 }
Пример #2
0
 public half4x4(uint4x4 v)
 {
     this.c0 = new half4(v.c0);
     this.c1 = new half4(v.c1);
     this.c2 = new half4(v.c2);
     this.c3 = new half4(v.c3);
 }
Пример #3
0
 public static void AreEqual(uint4x4 expected, uint4x4 actual)
 {
     AreEqual(expected.c0, actual.c0);
     AreEqual(expected.c1, actual.c1);
     AreEqual(expected.c2, actual.c2);
     AreEqual(expected.c3, actual.c3);
 }
Пример #4
0
 public fp4x4(uint4x4 v)
 {
     this.c0 = (fp4)v.c0;
     this.c1 = (fp4)v.c1;
     this.c2 = (fp4)v.c2;
     this.c3 = (fp4)v.c3;
 }
Пример #5
0
 /// <summary>
 /// Constructs this matrix from a uint4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public uint2x2(uint4x4 m)
 {
     this.m00 = m.m00;
     this.m01 = m.m01;
     this.m10 = m.m10;
     this.m11 = m.m11;
 }
Пример #6
0
 /// <summary>
 /// Constructs this matrix from a uint4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public uint3x2(uint4x4 m)
 {
     this.m00 = m.m00;
     this.m01 = m.m01;
     this.m10 = m.m10;
     this.m11 = m.m11;
     this.m20 = m.m20;
     this.m21 = m.m21;
 }
Пример #7
0
 /// <summary>
 /// Constructs this matrix from a uint4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public uint2x3(uint4x4 m)
 {
     this.m00 = m.m00;
     this.m01 = m.m01;
     this.m02 = m.m02;
     this.m10 = m.m10;
     this.m11 = m.m11;
     this.m12 = m.m12;
 }
Пример #8
0
 /// <summary>
 /// Constructs this matrix from a uint4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public uint2x4(uint4x4 m)
 {
     this.m00 = m.m00;
     this.m01 = m.m01;
     this.m02 = m.m02;
     this.m03 = m.m03;
     this.m10 = m.m10;
     this.m11 = m.m11;
     this.m12 = m.m12;
     this.m13 = m.m13;
 }
Пример #9
0
 /// <summary>
 /// Constructs this matrix from a uint4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public uint3x3(uint4x4 m)
 {
     this.m00 = m.m00;
     this.m01 = m.m01;
     this.m02 = m.m02;
     this.m10 = m.m10;
     this.m11 = m.m11;
     this.m12 = m.m12;
     this.m20 = m.m20;
     this.m21 = m.m21;
     this.m22 = m.m22;
 }
Пример #10
0
 /// <summary>
 /// Constructs this matrix from a uint4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public uint3x4(uint4x4 m)
 {
     this.m00 = m.m00;
     this.m01 = m.m01;
     this.m02 = m.m02;
     this.m03 = m.m03;
     this.m10 = m.m10;
     this.m11 = m.m11;
     this.m12 = m.m12;
     this.m13 = m.m13;
     this.m20 = m.m20;
     this.m21 = m.m21;
     this.m22 = m.m22;
     this.m23 = m.m23;
 }
Пример #11
0
 /// <summary>
 /// Returns an enumerator that iterates through all fields.
 /// </summary>
 public static IEnumerator <uint> GetEnumerator(uint4x4 m) => m.GetEnumerator();
Пример #12
0
 /// <summary>
 /// Creates a 1D array with all values (internal order)
 /// </summary>
 public static uint[] Values1D(uint4x4 m) => m.Values1D;
Пример #13
0
 /// <summary>
 /// Creates a 2D array with all values (address: Values[x, y])
 /// </summary>
 public static uint[,] Values(uint4x4 m) => m.Values;
Пример #14
0
 public static fp4x4 fp4x4(uint4x4 v)
 {
     return(new fp4x4(v));
 }