Esempio n. 1
0
 def test_get_rotation_matrix(self):
     result = mp.get_rotation_matrix(ones(), 5)
     self.assertTrue(
         result.c1.close(
             mp.Vector3(0.5224414569754843, -0.3148559165969717,
                        0.7924144596214877)))
     self.assertTrue(
         result.c2.close(
             mp.Vector3(0.7924144596214877, 0.5224414569754843,
                        -0.3148559165969717)))
     self.assertTrue(
         result.c3.close(
             mp.Vector3(-0.3148559165969717, 0.7924144596214877,
                        0.5224414569754843)))
Esempio n. 2
0
File: geom.py Progetto: oskooi/meep
 def test_get_rotation_matrix(self):
     result = mp.get_rotation_matrix(ones(), 5)
     self.assertTrue(result.c1.close(mp.Vector3(0.5224414569754843, -0.3148559165969717, 0.7924144596214877)))
     self.assertTrue(result.c2.close(mp.Vector3(0.7924144596214877, 0.5224414569754843, -0.3148559165969717)))
     self.assertTrue(result.c3.close(mp.Vector3(-0.3148559165969717, 0.7924144596214877, 0.5224414569754843)))