#point #geographic #calculate #compute

antipode

Compute the antipode of a geographic point

1 stable release

1.0.0 Jun 20, 2020

#201 in Geospatial

Custom license

3KB

antipode

CI crates.io

Calculate the point on earth's surface diametrically opposite to it.

...maybe simplest crate ever? ;-)

Example

use antipode::antipode;

let coord = (60.394306,  5.325919); // Bergen, Norway
let expected = (-60.394306, -174.674081);  // Somewhere off the coast of New Zealand
assert_eq!(expected, antipode(coord));

lib.rs:

Calculate the antipode of a geographic point.

No runtime deps