def translate(self, offset):
        "Moves the polygon by the specified offset."
        for vertex in self.vertices:
            vertex += offset
Moves the polygon by the specified offset.
recipes/Python/578004_processing/recipe-578004.py