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); }
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); }