mapbox / cheap-ruler

Fast approximations for common geodesic measurements 🌐
https://www.mapbox.com/blog/cheap-ruler/
ISC License
418 stars 32 forks source link

Add new ruler.offset method #25

Closed mourner closed 7 years ago

mourner commented 7 years ago

A new method to offset a location given dx/dy offset in ruler units (similar to destination but with different parameters). E.g. ruler.offset(point, 10, 10) returns a point 10km north and 10km east from the given one if ruler is in kilometers.

cc @DenisCarriere

mourner commented 7 years ago

The build actually passes, it shows error because of branch deletion probably.

DenisCarriere commented 7 years ago

👍 Looks good! Seems pretty handy