// test Matrix static void Main() { OperatedVector mat1 = new OperatedVector(); OperatedVector mat2 = new OperatedVector(); // init matrices with random values InitMatrix(mat1, 3.0f); InitMatrix(mat2, 5.2f); // print out matrices Console.WriteLine("Vector 1: "); PrintMatrix(mat1); Console.WriteLine("Vector 2: "); PrintMatrix(mat2); // perform operation and print out results OperatedVector mat3 = mat1 + mat2; Console.WriteLine(); Console.WriteLine("Vector 1 + Vector 2 = "); PrintMatrix(mat3); OperatedVector2 vec1 = new OperatedVector2(3, 4); OperatedVector2 result = vec1 * 5.0; Console.Write("X:"); Console.WriteLine(result.x); Console.Write("Y:"); Console.WriteLine(result.y); }