Beispiel #1
0
 public Matrixi33 Subtract(Matrixi33 other)
 {
     return(new Matrixi33(
                a - other.a, b - other.b, c - other.c,
                d - other.d, e - other.e, f - other.f,
                g - other.g, h - other.h, i - other.i));
 }
Beispiel #2
0
 public Matrixi33 Add(Matrixi33 other)
 {
     return(new Matrixi33(
                a + other.a, b + other.b, c + other.c,
                d + other.d, e + other.e, f + other.f,
                g + other.g, h + other.h, i + other.i));
 }
Beispiel #3
0
 public Matrixi33 Mul(Matrixi33 other)
 {
     return(new Matrixi33(
                a * other.a + b * other.d + c * other.g, a * other.b + b * other.e + c * other.h, a * other.c + b * other.f + c * other.i,
                d * other.a + e * other.d + f * other.g, d * other.b + e * other.e + f * other.h, d * other.c + e * other.f + f * other.i,
                g * other.a + h * other.d + i * other.g, g * other.b + h * other.e + i * other.h, g * other.c + h * other.f + i * other.i
                ));
 }
Beispiel #4
0
        public bool Equals(Matrixi33 other)
        {
            var areEqual =
                (a == other.a) && (b == other.b) && (c == other.c) &&
                (d == other.d) && (e == other.e) && (f == other.f) &&
                (g == other.g) && (h == other.h) && (i == other.i);

            return(areEqual);
        }
Beispiel #5
0
 public Matrixi33 Div(Matrixi33 other)
 {
     //return Mul(other.Inv());
     return(Mul(other));
 }