Exemplo n.º 1
0
 /// <summary>
 /// Constructs this matrix from a gmat2x3. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public gmat2(gmat2x3 <T> 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 gmat2x3. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public gmat2x3(gmat2x3 <T> 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 gmat2x3. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public gmat3x2(gmat2x3 <T> m)
 {
     this.m00 = m.m00;
     this.m01 = m.m01;
     this.m10 = m.m10;
     this.m11 = m.m11;
     this.m20 = default(T);
     this.m21 = default(T);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructs this matrix from a gmat2x3. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public gmat2x4(gmat2x3 <T> m)
 {
     this.m00 = m.m00;
     this.m01 = m.m01;
     this.m02 = m.m02;
     this.m03 = default(T);
     this.m10 = m.m10;
     this.m11 = m.m11;
     this.m12 = m.m12;
     this.m13 = default(T);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Constructs this matrix from a gmat2x3. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public gmat3(gmat2x3 <T> 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 = default(T);
     this.m21 = default(T);
     this.m22 = default(T);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Constructs this matrix from a gmat2x3. Non-overwritten fields are from an Identity matrix.
 /// </summary>
 public gmat4(gmat2x3 <T> m)
 {
     this.m00 = m.m00;
     this.m01 = m.m01;
     this.m02 = m.m02;
     this.m03 = default(T);
     this.m10 = m.m10;
     this.m11 = m.m11;
     this.m12 = m.m12;
     this.m13 = default(T);
     this.m20 = default(T);
     this.m21 = default(T);
     this.m22 = default(T);
     this.m23 = default(T);
     this.m30 = default(T);
     this.m31 = default(T);
     this.m32 = default(T);
     this.m33 = default(T);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Returns true iff this equals rhs component-wise.
 /// </summary>
 public bool Equals(gmat2x3 <T> rhs) => (((EqualityComparer <T> .Default.Equals(m00, rhs.m00) && EqualityComparer <T> .Default.Equals(m01, rhs.m01)) && EqualityComparer <T> .Default.Equals(m02, rhs.m02)) && ((EqualityComparer <T> .Default.Equals(m10, rhs.m10) && EqualityComparer <T> .Default.Equals(m11, rhs.m11)) && EqualityComparer <T> .Default.Equals(m12, rhs.m12)));
Exemplo n.º 8
0
 /// <summary>
 /// Returns an enumerator that iterates through all fields.
 /// </summary>
 public static IEnumerator <T> GetEnumerator <T>(gmat2x3 <T> m) => m.GetEnumerator();
Exemplo n.º 9
0
 /// <summary>
 /// Creates a 1D array with all values (internal order)
 /// </summary>
 public static T[] Values1D <T>(gmat2x3 <T> m) => m.Values1D;
Exemplo n.º 10
0
 /// <summary>
 /// Creates a 2D array with all values (address: Values[x, y])
 /// </summary>
 public static T[,] Values <T>(gmat2x3 <T> m) => m.Values;