示例#1
0
 public void TestToString()
 {
     Matrix44F m = new Matrix44F(rowMajor, MatrixOrder.RowMajor);
       Assert.IsFalse(String.IsNullOrEmpty(m.ToString()));
 }
示例#2
0
        public void TestEquals()
        {
            Matrix44F m1 = new Matrix44F(rowMajor, MatrixOrder.RowMajor);
              Matrix44F m2 = new Matrix44F(rowMajor, MatrixOrder.RowMajor);
              Assert.IsTrue(m1.Equals(m1));
              Assert.IsTrue(m1.Equals(m2));
              for (int i = 0; i < 16; i++)
              {
            m2 = new Matrix44F(rowMajor, MatrixOrder.RowMajor);
            m2[i] += 0.1f;
            Assert.IsFalse(m1.Equals(m2));
              }

              Assert.IsFalse(m1.Equals(m1.ToString()));
        }