mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update geometry/graham_scan_algorithm.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
47d37586f1
commit
ee4cb6352f
@ -30,10 +30,10 @@
|
||||
* Once we have the closed path, the next step is to traverse the path and
|
||||
* remove concave points on this path using orientation. The first two points in
|
||||
* sorted array are always part of Convex Hull. For remaining points, we keep
|
||||
*track of recent three points, and find the angle formed by them. Let the three
|
||||
*points be prev(p), curr(c) and next(n). If orientation of these points
|
||||
*(considering them in same order) is not counterclockwise, we discard c,
|
||||
*otherwise we keep it.
|
||||
* track of recent three points, and find the angle formed by them. Let the three
|
||||
* points be prev(p), curr(c) and next(n). If the orientation of these points
|
||||
* (considering them in the same order) is not counterclockwise, we discard c,
|
||||
* otherwise we keep it.
|
||||
*
|
||||
* @author [Lajat Manekar](https://github.com/Lazeeez)
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user