Safe Haskell | None |
---|---|
Language | Haskell2010 |
Geometric operations on earth surface assuming that earth is a sphere of radius 6371008 m.
Distance calculation.
This combinator computes the distance (in meters) between two
geo-locations using the haversine distance between two points. For
Position
which have an
A generalisation of dHvS
that takes the radius as
argument. Will work on Mars for example once we set up a latitude
longitude system there. For this function units does not matter ---
the computed distance is in the same unit as the input radius. We
have
distance = distance' rMean