def rotate(self, direction):
        "Rotates the polygon by a vector's direction."
        for vertex in self.vertices:
            vertex.direction += direction
Rotates the polygon by a vector's direction.
recipes/Python/578004_processing/recipe-578004.py