def test_homo_translate2d_returns_a_translation_identity_matrix(self): result = transform2d.homo_translate2d(0, 0) expected = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]]) np.testing.assert_array_equal(result, expected)
def test_homo_translate2d_returns_a_translation_matrix_in_x_and_y(self): result = transform2d.homo_translate2d(1, 1) expected = np.array([[1, 0, 1], [0, 1, 1], [0, 0, 1]]) np.testing.assert_array_equal(result, expected)