Function graphics::math::area [−] [src]

pub fn area(polygon: Polygon) -> Scalar

Computes area of a simple polygon.

A simple polygon is one that does not intersect itself.