Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilities to compute area, perimeterPolygon, etc. on the surface of a sphere.
- areaPolygon :: Polygon -> Double
- perimeterPolygon :: Polygon -> Double
- relativeCompactness :: Polygon -> Double
- totalPerimeter :: [Polygon] -> Double
- areaTriangle :: Point -> Point -> Point -> Double
- areaConvex :: Polygon -> Double
- distance :: (Double, Double) -> (Double, Double) -> Double
Documentation
areaPolygon :: Polygon -> Double Source #
Uses areal projection; then finds area of the polygon. Result is in km^2
perimeterPolygon :: Polygon -> Double Source #
relativeCompactness :: Polygon -> Double Source #
Relative compactness. Dimensionless.
totalPerimeter :: [Polygon] -> Double Source #
Given a list of polygons, return the total perimeter.
Spherical geometry
areaTriangle :: Point -> Point -> Point -> Double Source #
Compute the area of a triangle using LHuillier
s formula
areaConvex :: Polygon -> Double Source #
Compute the area of a convex polygon on the surface of a sphere.