Skip to main content

signed_area

Function signed_area 

Source
pub fn signed_area<R: Real>(polygon: &[[R; 2]]) -> R
Expand description

The area polygon encloses, signed by the way it is walked: positive counter-clockwise (x toward y), negative clockwise; zero with fewer than three corners. A caller wanting the size alone takes abs.