Beispiel #1
0
 def test_is_entering_false(self):
     s = Sphere(radius=1)
     assert s.is_entering((-1.0, 0.0, 0.0), (-1.0, 0.0, 0.0)) == False
Beispiel #2
0
 def test_is_entering_false(self):
     s = Sphere(radius=1)
     assert s.is_entering((-1.0, 0.0, 0.0), (-1.0, 0.0, 0.0)) == False
Beispiel #3
0
 def test_is_entering_true(self):
     s = Sphere(radius=1)
     assert s.is_entering((-1.0, 0.0, 0.0), (1.0, 0.0, 0.0)) == True
Beispiel #4
0
 def test_is_entering_true(self):
     s = Sphere(radius=1)
     assert s.is_entering((-1.0, 0.0, 0.0), (1.0, 0.0, 0.0)) == True