Expand description
Graham scan algorithm implementation for 2D convex hull computation
The Graham scan algorithm computes the convex hull of a set of 2D points by sorting points by polar angle and using a stack-based approach to eliminate concave points.
Functionsยง
- compute_
graham_ scan - Compute convex hull using Graham scan algorithm (2D only)
- find_
start_ point - Find the starting point for Graham scan
- is_
ccw_ turn - Check if three points make a counterclockwise turn
- sort_
by_ polar_ angle - Sort points by polar angle from a reference point