Skip to main content

ring_area

Function ring_area 

Source
pub fn ring_area(ring: &Ring) -> f64
Expand description

Absolute area of a ring.

Exposed because area monotonicity is the property callers most often want to assert about an offset, and re-deriving the shoelace formula per consumer invites sign-convention mistakes.

Summed relative to the first vertex, so a small ring far from the origin keeps its area (#274).