antipode 1.0.0

Compute the antipode of a geographic point
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 1 items with examples
  • Size
  • Source code size: 4.88 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • milesgranger

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));