piston_window::math
pub fn area<T>(polygon: &[[T; 2]]) -> T where T: Float,
Computes area of a simple polygon.
A simple polygon is one that does not intersect itself.