def transform(self, m: Matrix44) -> "Point": """Transform the POINT entity by transformation matrix `m` inplace.""" self.dxf.location = m.transform(self.dxf.location) transform_thickness_and_extrusion_without_ocs(self, m) # ignore dxf.angle! self.post_transform(m) return self
def transform(self, m: Matrix44) -> 'Line': """ Transform the LINE entity by transformation matrix `m` inplace. """ start, end = m.transform_vertices([self.dxf.start, self.dxf.end]) self.dxf.start = start self.dxf.end = end transform_thickness_and_extrusion_without_ocs(self, m) return self
def transform(self, m: Matrix44) -> 'Point': """ Transform POINT entity by transformation matrix `m` inplace. .. versionadded:: 0.13 """ self.dxf.location = m.transform(self.dxf.location) transform_thickness_and_extrusion_without_ocs(self, m) # ignore dxf.angle! return self