Moves the polygon by the specified offset.
(self, offset)
| 16 | self.vertices = vertices |
| 17 | |
| 18 | def translate(self, offset): |
| 19 | "Moves the polygon by the specified offset." |
| 20 | for vertex in self.vertices: |
| 21 | vertex += offset |
| 22 | |
| 23 | def rotate(self, direction): |
| 24 | "Rotates the polygon by a vector's direction." |
no outgoing calls