Copyright | 2014-2016 Franz-Benjamin Mocnik |
---|---|
License | MIT |
Maintainer | mail@mocnik-science.net |
Stability | stable |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
- radiusEarth :: Double
- degreeToRad :: Double -> Double
- radToDegree :: Double -> Double
- class (Ord c, Eq c, Show c) => Coordinates c where
- newtype CoordinatesCartesian = CoordinatesCartesian (Double, Double)
- newtype CoordinatesWGS84 = CoordinatesWGS84 (Double, Double)
Constants
radiusEarth :: Double Source #
radius of the Earth in km
Geo Functions
degreeToRad :: Double -> Double Source #
degree to rad
radToDegree :: Double -> Double Source #
rad to degree
Coordinates
class (Ord c, Eq c, Show c) => Coordinates c where Source #
Coordinate class
newtype CoordinatesCartesian Source #
Cartesian coordinates
newtype CoordinatesWGS84 Source #
Geographic coordinates (WGS84)