Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Point a = Point {
- getPoint :: (a, a)
- _Point :: forall p f a b. (Profunctor p, Functor f) => p (Point a) (f (Point b)) -> p (a, a) (f (b, b))
- newtype Polygon a = Polygon {
- getPolygon :: NonEmpty a
- _Polygon :: forall p f a b. (Profunctor p, Functor f) => p (Polygon a) (f (Polygon b)) -> p (NonEmpty a) (f (NonEmpty b))
- newtype WGS84 = WGS84 {}
- _WGS84 :: forall p f. (Profunctor p, Functor f) => p WGS84 (f WGS84) -> p (Point Degrees) (f (Point Degrees))
- newtype Radians = Radians {
- getRadians :: Double
- _Radians :: forall p f. (Profunctor p, Functor f) => p Radians (f Radians) -> p Double (f Double)
- newtype Degrees = Degrees {
- getDegrees :: Double
- _Degrees :: forall p f. (Profunctor p, Functor f) => p Degrees (f Degrees) -> p Double (f Double)
- _DegRad :: forall p f. (Profunctor p, Functor f) => p Degrees (f Degrees) -> p Radians (f Radians)
- fromRad :: Radians -> Degrees
- toRad :: Degrees -> Radians
Documentation
Instances
Functor Point Source # | |
Scalable Albers (Point Radians) (Double, Double) # | |
Scalable Mercator (Point Radians) (Double, Double) # | |
Eq a => Eq (Point a) Source # | |
Ord a => Ord (Point a) Source # | |
Show a => Show (Point a) Source # | |
Generic (Point a) Source # | |
data ScaleOptions Albers (Point Radians) (Double, Double) # | |
data ScaleOptions Mercator (Point Radians) (Double, Double) # | |
Defined in Data.H3.Geo.Projection | |
type Rep (Point a) Source # | |
Defined in Data.H3.Geo.Types |
_Point :: forall p f a b. (Profunctor p, Functor f) => p (Point a) (f (Point b)) -> p (a, a) (f (b, b)) Source #
Point iso
Polygon | |
|
Instances
Functor Polygon Source # | |
Foldable Polygon Source # | |
Defined in Data.H3.Geo.Types fold :: Monoid m => Polygon m -> m # foldMap :: Monoid m => (a -> m) -> Polygon a -> m # foldr :: (a -> b -> b) -> b -> Polygon a -> b # foldr' :: (a -> b -> b) -> b -> Polygon a -> b # foldl :: (b -> a -> b) -> b -> Polygon a -> b # foldl' :: (b -> a -> b) -> b -> Polygon a -> b # foldr1 :: (a -> a -> a) -> Polygon a -> a # foldl1 :: (a -> a -> a) -> Polygon a -> a # elem :: Eq a => a -> Polygon a -> Bool # maximum :: Ord a => Polygon a -> a # minimum :: Ord a => Polygon a -> a # | |
Foldable1 Polygon Source # | |
Eq a => Eq (Polygon a) Source # | |
Ord a => Ord (Polygon a) Source # | |
Defined in Data.H3.Geo.Types | |
Show a => Show (Polygon a) Source # | |
Generic (Polygon a) Source # | |
type Rep (Polygon a) Source # | |
Defined in Data.H3.Geo.Types |
_Polygon :: forall p f a b. (Profunctor p, Functor f) => p (Polygon a) (f (Polygon b)) -> p (NonEmpty a) (f (NonEmpty b)) Source #
Polygon iso
_WGS84 :: forall p f. (Profunctor p, Functor f) => p WGS84 (f WGS84) -> p (Point Degrees) (f (Point Degrees)) Source #
Point in WGS84 format
Instances
Eq Radians Source # | |
Floating Radians Source # | |
Fractional Radians Source # | |
Num Radians Source # | |
Ord Radians Source # | |
Show Radians Source # | |
Generic Radians Source # | |
Scalable Albers (Point Radians) (Double, Double) # | |
Scalable Mercator (Point Radians) (Double, Double) # | |
type Rep Radians Source # | |
Defined in Data.H3.Geo.Types | |
data ScaleOptions Albers (Point Radians) (Double, Double) # | |
data ScaleOptions Mercator (Point Radians) (Double, Double) # | |
Defined in Data.H3.Geo.Projection |
_Radians :: forall p f. (Profunctor p, Functor f) => p Radians (f Radians) -> p Double (f Double) Source #
Angle in radians
Instances
Eq Degrees Source # | |
Floating Degrees Source # | |
Fractional Degrees Source # | |
Num Degrees Source # | |
Ord Degrees Source # | |
Show Degrees Source # | |
Generic Degrees Source # | |
type Rep Degrees Source # | |
Defined in Data.H3.Geo.Types |
_Degrees :: forall p f. (Profunctor p, Functor f) => p Degrees (f Degrees) -> p Double (f Double) Source #
Angle in degrees