pub fn convex_hull(points: &mut Vec<(f64, f64)>) -> Vec<(f64, f64)>
Expand description

Computes the convex hull of a set of 2D points using Graham’s scan algorithm.

§Arguments

  • points - A mutable vector of tuples representing the points (x, y).

§Returns

A vector of tuples representing the points that form the convex hull in counter-clockwise order.