Copyright | (c) 2018 Cedric Liegeois |
---|---|
License | BSD3 |
Maintainer | Cedric Liegeois <ofmooseandmen@yahoo.fr> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Angular positions.
Synopsis
- data AngularPosition a = AngularPosition {}
- latLongHeight :: LatLong -> Length -> AngularPosition LatLong
- decimalLatLongHeight :: Double -> Double -> Length -> AngularPosition LatLong
- decimalLatLongHeightE :: Double -> Double -> Length -> Either String (AngularPosition LatLong)
- decimalLatLongHeightF :: MonadFail m => Double -> Double -> Length -> m (AngularPosition LatLong)
- nvectorHeight :: NVector -> Length -> AngularPosition NVector
Documentation
data AngularPosition a Source #
An earth position defined by an horizontal position and height.
Instances
latLongHeight :: LatLong -> Length -> AngularPosition LatLong Source #
AngularPosition
from a LatLong
and height.
decimalLatLongHeight :: Double -> Double -> Length -> AngularPosition LatLong Source #
AngularPosition
from given latitude and longitude in decimal degrees and height.
error
s if given latitude is outisde [-90..90]° and/or
given longitude is outisde [-180..180]°.
decimalLatLongHeightE :: Double -> Double -> Length -> Either String (AngularPosition LatLong) Source #
AngularPosition
from given latitude and longitude in decimal degrees and height.
A Left
indicates that the given latitude is outisde [-90..90]° and/or
given longitude is outisde [-180..180]°.
decimalLatLongHeightF :: MonadFail m => Double -> Double -> Length -> m (AngularPosition LatLong) Source #
AngularPosition
from given latitude and longitude in decimal degrees and height.
fail
s if given latitude is outisde [-90..90]° and/or
given longitude is outisde [-180..180]°.
nvectorHeight :: NVector -> Length -> AngularPosition NVector Source #
AngularPosition
from a NVector
and height.