def test_translation_from_matrix(): # doesn't seem to have a Cython backend v0 = np.random.random(3) - 0.5 v1 = t.translation_from_matrix(t.translation_matrix(v0)) assert_allclose(v0, v1)
def test_translation_from_matrix(): # doesn't seem to have a Cython backend v0 = np.array([0.2, 0.2, 0.2]) v1 = t.translation_from_matrix(t.translation_matrix(v0)) assert_allclose(v0, v1)