diff -r 55b4c97d44c5 -r 5411a25cfca7 geometry.py --- a/geometry.py Sun Dec 10 15:37:26 2017 +0200 +++ b/geometry.py Sun Dec 10 15:45:50 2017 +0200 @@ -18,6 +18,12 @@ def __repr__(self): return str.format('LineSegment({!r}, {!r})', self.v1, self.v2) +class Polygon: + def __init__(self, vertices): + self.vertices = vertices + def __repr__(self): + return str.format('Polygon({!r})', self.vertices) + def is_real(number): return isinstance(number, int) or isinstance(number, float)