예제 #1
0
 def test_not_in_sphere(self):
     p = Point(0, 0, 1)
     self.assertFalse(p.in_sphere(Point(0, 0, 0), 0.9))
예제 #2
0
 def test_in_sphere(self):
     p = Point(0, 0, 1)
     self.assertTrue(p.in_sphere(Point(0, 0, 0), 1))