Exemplo n.º 1
0
 /// <summary>
 /// Constructs this matrix from a long4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public long2x2(long4x4 m)
 {
     this.m00 = m.m00;
     this.m01 = m.m01;
     this.m10 = m.m10;
     this.m11 = m.m11;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructs this matrix from a long4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public long2x3(long4x4 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;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructs this matrix from a long4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public long3x2(long4x4 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;
 }
Exemplo n.º 4
0
        public static void long4x4()
        {
            long4x4 v = new long4x4(Long4.TestData_LHS[0], Long4.TestData_LHS[1], Long4.TestData_LHS[2], Long4.TestData_LHS[3]);

            Assert.AreEqual(new long4x4(v.c0.x, v.c0.y, v.c0.z, v.c0.w,
                                        v.c1.x, v.c1.y, v.c1.z, v.c1.w,
                                        v.c2.x, v.c2.y, v.c2.z, v.c2.w,
                                        v.c3.x, v.c3.y, v.c3.z, v.c3.w),
                            maxmath.transpose(v));
        }
Exemplo n.º 5
0
 /// <summary>
 /// Constructs this matrix from a long4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public long2x4(long4x4 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;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Constructs this matrix from a long4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public long3x3(long4x4 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;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Constructs this matrix from a long4x4. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public long3x4(long4x4 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;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Returns an enumerator that iterates through all fields.
 /// </summary>
 public static IEnumerator <long> GetEnumerator(long4x4 m) => m.GetEnumerator();
Exemplo n.º 9
0
 /// <summary>
 /// Creates a 1D array with all values (internal order)
 /// </summary>
 public static long[] Values1D(long4x4 m) => m.Values1D;
Exemplo n.º 10
0
 /// <summary>
 /// Creates a 2D array with all values (address: Values[x, y])
 /// </summary>
 public static long[,] Values(long4x4 m) => m.Values;