def translate_matrix(m, v):
 (a, b, c, d, e, f) = m
 (x, y) = v
 return (a, b, c, d, (((x * a) + (y * c)) + e), (((x * b) + (y * d)) + f))

def translate_matrix ( m , v ) : ( a , b , c , d , e , f ) = m ( x , y ) = v return ( a , b , c , d , ( ( ( x * a ) + ( y * c ) ) + e ) , ( ( ( x * b ) + ( y * d ) ) + f ) )
translates a matrix by .