示例#1
0
        public void TestEquals()
        {
            QuaternionF q1 = new QuaternionF(1.0f, 2.0f, 3.0f, 4.0f);
            QuaternionF q2 = new QuaternionF(1.0f, 2.0f, 3.0f, 4.0f);
            QuaternionF q3 = new QuaternionF(1.0f, 2.0f, 3.0f, 0.0f);

            Assert.IsTrue(q1.Equals(q2));
            Assert.IsFalse(q1.Equals(q3));
        }
示例#2
0
        public void TestEquals2()
        {
            QuaternionF q = QuaternionF.Identity;

            Assert.IsFalse(q.Equals(q.ToString()));
        }
示例#3
0
 public void TestEquals()
 {
     QuaternionF q1 = new QuaternionF(1.0f, 2.0f, 3.0f, 4.0f);
       QuaternionF q2 = new QuaternionF(1.0f, 2.0f, 3.0f, 4.0f);
       QuaternionF q3 = new QuaternionF(1.0f, 2.0f, 3.0f, 0.0f);
       Assert.IsTrue(q1.Equals(q2));
       Assert.IsFalse(q1.Equals(q3));
 }