Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PolygonGroup:
- def __init__(self, polygons=None):
- self.polygons = []
- if polygons is not None:
- self.polygons.extend(polygons)
- def apply_transformation(self, transformation):
- list(map(lambda x: x.apply_transformation(transformation), self.polygons))
- def draw_to_svg(self, svg):
- list(map(lambda x: x.draw_to_svg(svg), self.polygons))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement