Initializes polygon with a list of vertices.
(self, *vertices)
| 12 | __slots__ = 'vertices' |
| 13 | |
| 14 | def __init__(self, *vertices): |
| 15 | "Initializes polygon with a list of vertices." |
| 16 | self.vertices = vertices |
| 17 | |
| 18 | def translate(self, offset): |
| 19 | "Moves the polygon by the specified offset." |