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
Eq a => Eq (AngularPosition a) Source # | |
Defined in Data.Geo.Jord.AngularPosition (==) :: AngularPosition a -> AngularPosition a -> Bool # (/=) :: AngularPosition a -> AngularPosition a -> Bool # | |
Show a => Show (AngularPosition a) Source # | |
Defined in Data.Geo.Jord.AngularPosition showsPrec :: Int -> AngularPosition a -> ShowS # show :: AngularPosition a -> String # showList :: [AngularPosition a] -> ShowS # | |
ETransform (AngularPosition LatLong) Source # | |
Defined in Data.Geo.Jord.Transformation toEcef :: AngularPosition LatLong -> Earth -> EcefPosition Source # fromEcef :: EcefPosition -> Earth -> AngularPosition LatLong Source # | |
ETransform (AngularPosition NVector) Source # | |
Defined in Data.Geo.Jord.Transformation toEcef :: AngularPosition NVector -> Earth -> EcefPosition Source # fromEcef :: EcefPosition -> Earth -> AngularPosition NVector Source # | |
NTransform (AngularPosition LatLong) Source # | |
NTransform (AngularPosition NVector) Source # |
|
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.