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