About
A plane projection, useful for blazingly fast approximate distance calculations. Based on WGS84 ellipsoid model of the Earth, plane projection provides 0.1% precision on distances under 500km at latitudes up to the 65°. See the article about Cheap Ruler for more details about the principle and formulas behind.
Comparing to another Rust crates that provide the same functionality, cheap-ruler-rs and flat-projection, this crate has zero dependencies and minimalistic API.
Usage
Add this to your Cargo.toml:
[]
= "0.3"
Example
use PlaneProjection;
let proj = new;
let distance = proj.distance;
assert_eq!;
License
All code in this project is dual-licensed under either:
at your option.