An open API service indexing awesome lists of open source software.

https://github.com/milesgranger/antipode

Calculate the point on earth's service diametrically opposite to it.
https://github.com/milesgranger/antipode

Last synced: 12 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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