Esempio n. 1
0
def test_translation_from_matrix():
    t = [1, 2, 3]
    T = matrix_from_translation(t)
    assert translation_from_matrix(T) == t
Esempio n. 2
0
def _matrix_to_xyz_quaternion(M):
    xyz = translation_from_matrix(M)
    quaternion = quaternion_from_matrix(M)

    return xyz + quaternion