Exemplo n.º 1
0
 public Matrixi22 Add(Matrixi22 other)
 {
     return(new Matrixi22(
                a + other.a,
                b + other.b,
                c + other.c,
                d + other.d));
 }
Exemplo n.º 2
0
 public Matrixi22 Subtract(Matrixi22 other)
 {
     return(new Matrixi22(
                a - other.a,
                b - other.b,
                c - other.c,
                d - other.d));
 }
Exemplo n.º 3
0
 public Matrixi22 Mul(Matrixi22 other)
 {
     return(new Matrixi22(
                a * other.a + b * other.c,
                a * other.b + b * other.d,
                c * other.a + c * other.c,
                d * other.b + d * other.d
                ));
 }
Exemplo n.º 4
0
        public bool Equals(Matrixi22 other)
        {
            var areEqual = (a == other.a) && (b == other.b) && (c == other.c) && (d == other.d);

            return(areEqual);
        }
Exemplo n.º 5
0
 public Matrixi22 Div(Matrixi22 other)
 {
     //return Mul(other.Inv());
     return(Mul(other));
 }