pub fn polygon_area(coords: &[f64]) -> f64
Calculate polygon area using the Shoelace formula. Takes coordinates as flat array [x1, y1, x2, y2, …]