示例#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