jord-0.3.1.0: Geographical Position Calculations

Copyright(c) 2018 Cedric Liegeois
LicenseBSD3
MaintainerCedric Liegeois <ofmooseandmen@yahoo.fr>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Data.Geo.Jord.AngularPosition

Description

Angular positions.

See Earth Coordinates

Synopsis

Documentation

data AngularPosition a Source #

An earth position defined by an horizontal position and height.

horizontal position can be either a LatLong or a NVector.

Constructors

AngularPosition 

Fields

Instances
Eq a => Eq (AngularPosition a) Source # 
Instance details

Defined in Data.Geo.Jord.AngularPosition

Show a => Show (AngularPosition a) Source # 
Instance details

Defined in Data.Geo.Jord.AngularPosition

ETransform (AngularPosition LatLong) Source #

AngularPosition of LatLong - EcefPosition.

Instance details

Defined in Data.Geo.Jord.Transform

ETransform (AngularPosition NVector) Source #

AngularPosition of NVector - EcefPosition.

Instance details

Defined in Data.Geo.Jord.Transform

NTransform (AngularPosition LatLong) Source #

AngularPosition of LatLong - AngularPosition of NVector.

Instance details

Defined in Data.Geo.Jord.Transform

NTransform (AngularPosition NVector) Source #

NTransform identity.

Instance details

Defined in Data.Geo.Jord.Transform

decimalLatLongHeight :: Double -> Double -> Length -> AngularPosition LatLong Source #

AngularPosition from given latitude and longitude in decimal degrees and height. errors 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. fails if given latitude is outisde [-90..90]° and/or given longitude is outisde [-180..180]°.