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)))
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)))