coordinate-0.1.2: A representation of latitude and longitude
Data.Geodetic.LL
Synopsis
data LL Source #
Constructors
Fields
Instances
Methods
(==) :: LL -> LL -> Bool #
(/=) :: LL -> LL -> Bool #
compare :: LL -> LL -> Ordering #
(<) :: LL -> LL -> Bool #
(<=) :: LL -> LL -> Bool #
(>) :: LL -> LL -> Bool #
(>=) :: LL -> LL -> Bool #
max :: LL -> LL -> LL #
min :: LL -> LL -> LL #
showsPrec :: Int -> LL -> ShowS #
show :: LL -> String #
showList :: [LL] -> ShowS #
doubles :: Traversal' LL Double Source #
lL :: Lens' LL LL Source #
lat :: Lens' LL Double Source #
lon :: Lens' LL Double Source #
class HasLL c where Source #
Minimal complete definition
lL
lL :: Lens' c LL Source #
lat :: Lens' c Double Source #
lon :: Lens' c Double Source #
lL :: Lens' LLH LL Source #
lat :: Lens' LLH Double Source #
lon :: Lens' LLH Double Source #
degrees :: Iso' (Double, Double) LL Source #
>>> ((27.34, 152.15) ^. degrees) LL {_lat = 0.47717301749524965, _lon = 2.6555184569093724}
>>>
((27.34, 152.15) ^. degrees)
>>> (degrees # LL 0.47717 2.65552) (27.33982711025749,152.15008841258037)
(degrees # LL 0.47717 2.65552)
(<◦>) :: Double -> Double -> LL Source #
>>> 27.34 <◦> 152.15 LL {_lat = 0.47717301749524965, _lon = 2.6555184569093724}
27.34 <◦> 152.15
>>> 61.94 <◦> (-152.15) LL {_lat = 1.0810569386852877, _lon = -2.6555184569093724}
61.94 <◦> (-152.15)