(x, y)
return rv
Return the matrix to translate a 2-D point by x and y.
Return the matrix to translate a 2-D point by x and y.
Return the matrix to translate a 2 - D point by x and y .
def translate(x, y):
    """Return the matrix to translate a 2-D point by x and y."""
    rv = eye(3)
    rv[2, 0] = x
    rv[2, 1] = y
    return rv
def translate ( x , y ) : rv = eye ( 3 ) rv [ 2 , 0 ] = x rv [ 2 , 1 ] = y return rv