georust / geographiclib-rs

A port of geographiclib in Rust.
MIT License
41 stars 9 forks source link

replace get_epsilon with f64 EPSILON #1

Open stonylohr opened 4 years ago

stonylohr commented 4 years ago

geomath::get_epsilon is calculating a value that rust already has available as the constant f64::EPSILON. It would be preferable to reference that constant directly, rather than defining a function for it.

Psykopear commented 4 years ago

Yes, you can open a PR with the fix