8000 Just changing to show it computes convex hull for negative coordinate… · pythonpeixun/practice-python@e9b25b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit e9b25b3

Browse files
committed
Just changing to show it computes convex hull for negative coordinates, also.
1 parent 0b73567 commit e9b25b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convex-hull/convex-hull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def display(self):
9696
def main():
9797
ch = ConvexHull()
9898
for _ in range(50):
99-
ch.add(Point(random.randint(0, 100), random.randint(0, 100)))
99+
ch.add(Point(random.randint(-100, 100), random.randint(-100, 100)))
100100

101101
print("Points on hull:", ch.get_hull_points())
102102
ch.display()

0 commit comments

Comments
 (0)
0