Skip to content

Commit a5aae86

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

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
@@ -45,8 +45,7 @@ def angle_comparer(point: tuple[int, int], minx: int, miny: int) -> float:
4545
"""
4646
# sort the points accorgind to the angle from the lowest and the most left point
4747
x, y = point
48-
angle = degrees(atan2(y - miny, x - minx))
49-
return angle
48+
return degrees(atan2(y - miny, x - minx))
5049

5150

5251
def check_direction(

0 commit comments

Comments
 (0)