def test_to_rodrigues(self): # rodrigues identity: [0,0,0] ident_rod = [0, 0, 0] rot_d = Rotation('d') rot_f = Rotation('f') rod = rot_d.rodrigues() numpy.testing.assert_equal(rod, ident_rod) rod = rot_f.rodrigues() numpy.testing.assert_equal(rod, ident_rod)
def test_to_rodrigues(self): # rodrigues identity: [0,0,0] ident_rod = [[0], [0], [0]] rot_d = Rotation(ctypes.c_double) rot_f = Rotation(ctypes.c_float) rod = rot_d.rodrigues() numpy.testing.assert_equal(rod, ident_rod) rod = rot_f.rodrigues() numpy.testing.assert_equal(rod, ident_rod)