def translate(x, y):
    rv = eye(3)
    rv[2, 0] = x
    rv[2, 1] = y
    return rv
Return the matrix to translate a 2-D point by x and y.
dataset/ETHPy150Open sympy/sympy/sympy/geometry/entity.py/translate