Exemplo n.º 1
0
 def __init__(self):
     Polygon.__init__(self, 4)
Exemplo n.º 2
0
 def __init__(self, *args, **kw):
     assert len(kw) == 0 and len(args) in (1, 3)
     Polygon.__init__(self, *args, **kw)
Exemplo n.º 3
0
 def __init__(self, points, polygon_id):
     Polygon.__init__(self, points)
     self.__id = polygon_id
     self.__get_extreme_point()
     self.__sorted_points = None
Exemplo n.º 4
0
 def __init__(self, points, polygon_id):
     Polygon.__init__(self, points)
     self.__id = polygon_id
     self.__get_extreme_point()
     self.__sorted_points = None
Exemplo n.º 5
0
 def __init__(self, Points, **kwargs):
     assert len(Points) == 3, 'More than 3 Points'
     Polygon.__init__(self, Points, **kwargs)