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 722ec3e commit 3fa68b5Copy full SHA for 3fa68b5
cyaron/polygon.py
@@ -144,7 +144,7 @@ def simple_polygon(points):
144
if not list_like(points):
145
raise Exception("source point is not a list")
146
random.shuffle(points)
147
- if len(points) < 3:
+ if len(points) <= 3:
148
return points
149
# divide by points[0], points[1]
150
divide_line = [points[1][1] - points[0][1],
0 commit comments