Expand description
Jarvis march (Gift Wrapping) algorithm implementation for 2D convex hull computation
The Jarvis march algorithm, also known as the Gift Wrapping algorithm, computes the convex hull by starting from the leftmost point and “wrapping” around the point set by repeatedly finding the most counterclockwise point.
Functions§
- compute_
jarvis_ march - Compute convex hull using Jarvis march (Gift Wrapping) algorithm (2D only)
- find_
leftmost_ point - Find the leftmost point in the point set
- find_
most_ counterclockwise - Find the most counterclockwise point from a given point
- is_
more_ counterclockwise - Check if a point is more counterclockwise than another
- jarvis_
step - Perform one step of the Jarvis march