pub fn ring_area<P: GetXY>(coords: &[P], radius: f64) -> f64Expand description
Calculate the approximate area of the polygon were it projected onto the planet. Note that this area will be positive if ring is oriented counter-clockwise, otherwise it will be negative.
Reference:
Robert. G. Chamberlain and William H. Duquette, “Some Algorithms for Polygons on a Sphere”,
JPL Publication 07-03, Jet Propulsion
Laboratory, Pasadena, CA, June 2007 https://trs.jpl.nasa.gov/handle/2014/40409
§Parameters
coords: ring Coordinates in lon-lat spaceplanetRadius: the radius of the planet (Earth by default)
§Returns
The approximate signed geodesic area of the polygon in square meters.