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
@ -31,8 +31,8 @@
|
|||||||
* remove concave points on this path using orientation. The first two points in
|
* 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
|
* 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
|
* 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
|
* points be prev(p), curr(c) and next(n). If the orientation of these points
|
||||||
*(considering them in same order) is not counterclockwise, we discard c,
|
* (considering them in the same order) is not counterclockwise, we discard c,
|
||||||
* otherwise we keep it.
|
* otherwise we keep it.
|
||||||
*
|
*
|
||||||
* @author [Lajat Manekar](https://github.com/Lazeeez)
|
* @author [Lajat Manekar](https://github.com/Lazeeez)
|
||||||
|
Loading…
Reference in New Issue
Block a user