Skip to content

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

License

Notifications You must be signed in to change notification settings

milesgranger/antipode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages