def transform(self, m):
if len(m) != <NUM_LIT:6>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self.x, self.y = TOOLS._transform_point(self, m)<EOL>return self<EOL>
Replace point by its transformation with matrix-like m.