Copyright | (c) Azavea, 2016 |
---|---|
License | Apache 2 |
Maintainer | Colin Woodbury <cwoodbury@azavea.com> |
Safe Haskell | None |
Language | Haskell2010 |
Geometries
Types
type Point = (Int, Int) Source #
Points in space. Using "Record Pattern Synonyms" here allows us to treat
Point
like a normal ADT, while its implementation remains an unboxed
(Int,Int)
.
newtype LineString Source #
Eq LineString Source # | |
Show LineString Source # | |
Generic LineString Source # | |
NFData LineString Source # | |
ProtobufGeom LineString Source # | A valid A |
type Rep LineString Source # | |
A polygon aware of its interior rings.
Eq Polygon Source # | |
Show Polygon Source # | |
Generic Polygon Source # | |
NFData Polygon Source # | |
ProtobufGeom Polygon Source # | A valid An Exterior Ring, followed by 0 or more Interior Rings. Any Ring must have a Performs no sanity checks for malformed Interior Rings. |
type Rep Polygon Source # | |
Operations
area :: Polygon -> Float Source #
The area of a Polygon
is the difference between the areas of its
outer ring and inner rings.