Inheritance: NewTOAPIA.MatrixSquare
Esempio n. 1
0
        public static mat2 outerProduct(vec2 c, vec2 r)
        {
            mat2 a = new mat2();

            a[0,0] = c.x * r.x; a[1,0] = c.x * r.y;
            a[0,1] = c.y * r.x; a[1,1] = c.y * r.y;

            return a;
        }
Esempio n. 2
0
 public static mat2 transpose(mat2 m)
 {
     return (mat2)m.Transpose;
 }
Esempio n. 3
0
 public static mat2 inverse(mat2 m)
 {
     return m.Inverse;
 }
Esempio n. 4
0
 public static mat2 matrixCompMult(mat2 x, mat2 y)
 {
     mat2 r = new mat2(MatrixSquare.ComponentMultiply(x, y));
     
     return r;
 }