We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f89a2e commit b15671aCopy full SHA for b15671a
cyaron/polygon.py
@@ -150,7 +150,7 @@ def simple_polygon(points):
150
raise Exception("source point is not a list")
151
random.shuffle(points)
152
if len(points) <= 3:
153
- return points
+ return Polygon(points)
154
# divide by points[0], points[1]
155
divide_line = [points[1][1] - points[0][1],
156
points[0][0] - points[1][0],
0 commit comments