Skip to content

Commit 6b31071

Browse files
Update other/graham_scan.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 3095a9c commit 6b31071

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: other/graham_scan.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def angle_comparer(point: tuple[int, int], minx: int, miny: int) -> float:
4444
33.690067525979785
4545
"""
4646
# sort the points accorgind to the angle from the lowest and the most left point
47-
x = point[0]
48-
y = point[1]
47+
x, y = point
4948
angle = degrees(atan2(y - miny, x - minx))
5049
return angle
5150

0 commit comments

Comments
 (0)