def transform(self, m):
if not len(m) == <NUM_LIT:6>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self.x0, self.y0, self.x1, self.y1 = TOOLS._transform_rect(self, m)<EOL>return self<EOL>
Replace rectangle with its transformation by matrix m.