Exemple #1
0
 def test_sphere_penetration_sphere_4(self):
     s1 = sphere.create()
     s2 = sphere.create([3.,0.,0.], 1.0)
     self.assertEqual(gt.sphere_penetration_sphere(s1, s2), 0.0)
Exemple #2
0
 def test_sphere_penetration_sphere_4(self):
     s1 = sphere.create()
     s2 = sphere.create([3.,0.,0.], 1.0)
     self.assertEqual(gt.sphere_penetration_sphere(s1, s2), 0.0)
Exemple #3
0
 def test_sphere_penetration_sphere_1(self):
     s1 = sphere.create()
     s2 = sphere.create()
     self.assertEqual(gt.sphere_penetration_sphere(s1, s2), 2.0)
Exemple #4
0
 def test_sphere_penetration_sphere_1(self):
     s1 = sphere.create()
     s2 = sphere.create()
     self.assertEqual(gt.sphere_penetration_sphere(s1, s2), 2.0)