Example #1
0
        public void Vect3NormalTest()
        {
            Vect3 vec = new Vect3(5.0, 0.0, 0.0);

            Assert.AreEqual <double>(1.0, vec.Normalise().X);
            Assert.AreEqual <double>(0.0, vec.Normalise().Y);
            Assert.AreEqual <double>(0.0, vec.Normalise().Z);
        }
Example #2
0
 public void Vect3NormalTest()
 {
     Vect3 vec = new Vect3(5.0, 0.0, 0.0);
     Assert.AreEqual<double>(1.0, vec.Normalise().X);
     Assert.AreEqual<double>(0.0, vec.Normalise().Y);
     Assert.AreEqual<double>(0.0, vec.Normalise().Z);
 }