Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- areaTriangle :: Floating a => a -> (a, a) -> (a, a) -> (a, a) -> a
- compactness :: Floating a => [(a, a)] -> a
- relativeCompactness :: Floating a => [(a, a)] -> a
- areaConvex :: Floating a => a -> [(a, a)] -> a
- perimeterPolygon :: Floating a => a -> [(a, a)] -> a
- areaPolygon :: Floating a => a -> [(a, a)] -> a
- distance :: Floating a => a -> (a, a) -> (a, a) -> a
- albers :: Floating a => (a, a) -> (a, a) -> (a, a)
- littow :: Floating a => (a, a) -> (a, a)
- craig :: (Floating a, Eq a) => (a, a) -> (a, a) -> (a, a)
- winkel3 :: (Eq a, Floating a) => (a, a) -> (a, a)
- mercator :: Floating a => (a, a) -> (a, a)
- bonne :: Floating a => a -> a -> (a, a) -> (a, a)
- washingtonDC :: Floating a => (a, a)
- mecca :: Floating a => (a, a)
- radians :: Floating a => a -> a
- toRadians :: Floating a => (a, a) -> (a, a)
- project :: (Floating a, Functor f) => ((a, a) -> (a, a)) -> f (a, a) -> f (a, a)
Computations
:: Floating a | |
=> a | Radius of the sphere |
-> (a, a) | A point given in radians |
-> (a, a) | |
-> (a, a) | |
-> a |
Compute the area of a triangle using L'Huillier's formula
:: Floating a | |
=> [(a, a)] | Polygons on surface of the sphere, given in degrees |
-> a |
Take the area of the polygon and divide by the perimeter squared. Dimensionless.
relativeCompactness :: Floating a => [(a, a)] -> a Source #
Relative compactness. Dimensionless.
:: Floating a | |
=> a | Radius of a sphere |
-> [(a, a)] | Polygon on the surface of the sphere |
-> a |
Compute the area of a convex polygon on the surface of a sphere.
:: Floating a | |
=> a | Radius of sphere |
-> [(a, a)] | Polygon on sphere given in degrees |
-> a |
:: Floating a | |
=> a | Radius of sphere |
-> [(a, a)] | Polygon on the sphere, with points given in degrees. |
-> a |
Uses areal projection; then finds area of the polygon by the shoelace method.
:: Floating a | |
=> a | Radius of sphere |
-> (a, a) | Point on sphere given in degrees |
-> (a, a) | Point on sphere given in degrees |
-> a |
Distance in kilometers between two points given in degrees.
Projections
:: Floating a | |
=> (a, a) | A reference point on the sphere |
-> (a, a) -> (a, a) |
Albers projection for a given reference point.
ablers washingtonDC
Craig retroazimuthal projection
:: Floating a | |
=> a | Standard Parallel. If you are unsure of what to put, try |
-> a | Central meridian. If you are unsure of what to put, try |
-> (a, a) | |
-> (a, a) |
Bonne projection.
Reference points
washingtonDC :: Floating a => (a, a) Source #
For use as a reference point