1 stable release
1.0.0 | Jun 20, 2020 |
---|
#13 in #geographic
3KB
antipode
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.