Example #1
0
 public static void PrintMatrix(ref Matrix[] matrix)
 {
     for (int i = 0; i < matrix.Length; i++)
     {
         try
         {
             try
             {
                 float[,] mat = MathM.Matrix3(matrix[i].matrix, matrix[i + 1].matrix);
                 MathM.PrintMatrix(ref mat);
                 Console.WriteLine();
             }
             catch (NullReferenceException e) { }
         }
         catch (IndexOutOfRangeException)
         {
         }
     }
 }
 public float[,] MultiMatrixs(ref float[,] otherMatrix)
 {
     return(MathM.Matrix3(this.matrix, otherMatrix));
 }
 public float[,] MultiMatrixs(ref float[,] matrixOne, ref float[,] matrixTwo)
 {
     return(matrix = MathM.Matrix3(matrixOne, matrixTwo));
 }
 public Matrix(int sizeOne, int sizeTwo)
 {
     matrix = new float[sizeOne, sizeTwo];
     MathM.IdentityMatrix(ref matrix);
 }