Пример #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
Пример #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
Пример #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
Пример #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