pub fn polygon_area(polygon: &[Point]) -> f32
Compute the area of a polygon using the shoelace formula.