Skip to main content

ring_area

Function ring_area 

Source
pub fn ring_area(coords: &[GeoCoord]) -> f64
Expand description

Signed area of a ring on a sphere using the Haversine-based excess formula.

Positive for counter-clockwise rings, negative for clockwise. The result is in square meters on the WGS-84 sphere.