antipode 1.0.0

Compute the antipode of a geographic point
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# antipode

[![CI](https://github.com/milesgranger/antipode/workflows/CI/badge.svg?branch=master)](https://github.com/milesgranger/antipode/actions?query=branch=master)
[![crates.io](http://meritbadge.herokuapp.com/antipode)](https://crates.io/crates/antipode)

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

...maybe simplest crate ever? ;-)

Example
-------
```rust
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));
```