Skip to main content

signed_area

Function signed_area 

Source
pub fn signed_area(points: &[[f64; 2]]) -> f64
Expand description

The signed area of the closed polygon points, by the shoelace formula: positive when it runs counter-clockwise. Fewer than three points have no area.