コード例 #1
0
 public void MultiplyTest()
 {
     matrix1       = new RotateMatrix(data1);
     double[,] dou = matrix1.Multiply(1.1).m_data;
     Assert.AreEqual(dou[0, 0], data1[0, 0] * 1.1);
     Assert.AreEqual(dou[0, 1], data1[0, 1] * 1.1);
     Assert.AreEqual(dou[1, 0], data1[1, 0] * 1.1);
     Assert.AreEqual(dou[1, 1], data1[1, 1] * 1.1);
 }
コード例 #2
0
 public void MultiplyTest1()
 {
     matrix1       = new RotateMatrix(data1);
     matrix2       = new RotateMatrix(data2);
     double[,] dou = matrix1.Multiply(matrix2).m_data;
     Assert.AreEqual(dou[0, 0], 12);
     Assert.AreEqual(dou[0, 1], 13);
     Assert.AreEqual(dou[1, 0], 56);
     Assert.AreEqual(dou[1, 1], 61);
 }