Skip to content

Commit 5fa8fec

Browse files
authored
Fixed typo
This typo caused some points be be erroneously included in the hull.
1 parent cd7778f commit 5fa8fec

File tree

1 file changed

+1
-1
lines changed
  • chapters/computational_geometry/gift_wrapping/graham_scan/code/python

1 file changed

+1
-1
lines changed

chapters/computational_geometry/gift_wrapping/graham_scan/code/python/grahamScan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def counter_Clockwise(p1, p2, p3):
88

99
#Find the polar angle of a point relative to a reference point
1010
def polar_Angle(ref, point):
11-
return atan2(point[1]-ref[0],point[0]-ref[0])
11+
return atan2(point[1]-ref[1],point[0]-ref[0])
1212

1313

1414
def graham_Scan(gift):

0 commit comments

Comments
 (0)