Esempio n. 1
0
File: geom.py Progetto: oskooi/meep
 def test_contains_point(self):
     s = gm.Sphere(center=zeros(), radius=2.0)
     point = ones()
     self.assertTrue(point in s)
     self.assertTrue(mp.is_point_in_periodic_object(mp.Vector3(), s))
     self.assertIn(point, s)
     self.assertFalse(gm.Vector3(10, 10, 10) in s)
Esempio n. 2
0
File: geom.py Progetto: jlollis/meep
 def test_contains_point(self):
     s = gm.Sphere(center=zeros(), radius=2.0)
     point = ones()
     self.assertTrue(point in s)
     self.assertTrue(mp.is_point_in_periodic_object(mp.Vector3(), s))
     self.assertIn(point, s)
     self.assertFalse(gm.Vector3(10, 10, 10) in s)