Exemplo n.º 1
0
 public void Equals_ReturnsTrueForSameRay()
 {
     const float x = 5, y = 6, z = 7, dx = 4, dy = 3, dz = 2;
     var ray1 = new Ray(x, y, z, dx, dy, dz);
     var ray2 = new Ray(x, y, z, dx, dy, dz);
     Assert.IsTrue(ray1.Equals(ray2));
 }
Exemplo n.º 2
0
 public void Equals_ReturnsFalseForDifferentRay()
 {
     const float x = 5, y = 6, z = 7, dx = 4, dy = 3, dz = 2;
     var ray1 = new Ray(x, y, z, dx, dy, dz);
     var ray2 = new Ray(z, y, x, dx, dy, dz);
     Assert.IsFalse(ray1.Equals(ray2));
 }