Safe Haskell | None |
---|---|
Language | Haskell2010 |
- module Data.PlanarGraph
- type PlaneGraph s w v e f r = PlanarGraph s w (Point 2 r :+ v) e f
- withEdgeDistances :: (Point 2 r -> Point 2 r -> a) -> PlaneGraph s w p e f r -> PlaneGraph s w p (a :+ e) f r
- faceToSimplePolygon :: FaceId s w -> PlaneGraph s w p e f r -> SimplePolygon p r :+ f
Documentation
module Data.PlanarGraph
type PlaneGraph s w v e f r = PlanarGraph s w (Point 2 r :+ v) e f Source #
withEdgeDistances :: (Point 2 r -> Point 2 r -> a) -> PlaneGraph s w p e f r -> PlaneGraph s w p (a :+ e) f r Source #
Labels the edges of a plane graph with their distances, as specified by the distance function.
faceToSimplePolygon :: FaceId s w -> PlaneGraph s w p e f r -> SimplePolygon p r :+ f Source #