def concatenate_matrices(*matrices):
 M = numpy.identity(4)
 for i in matrices:
  M = numpy.dot(M, i)
 return M

def concatenate_matrices ( * matrices ) : M = numpy . identity ( 4 ) for i in matrices : M = numpy . dot ( M , i ) return M
return concatenation of series of transformation matrices .