Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data APolygon a = Polygon {}
- type Polygon = APolygon Rational
- type FPolygon = APolygon Double
- type P = V2 Double
- mkPolygon :: (Fractional a, Ord a) => Vector (V2 a) -> APolygon a
- mkPolygonFromRing :: (Fractional a, Ord a) => Ring a -> APolygon a
- pParent :: Polygon -> Int -> Int -> Int
- pSetOffset :: APolygon a -> Int -> APolygon a
- pAdjustOffset :: APolygon a -> Int -> APolygon a
- pSize :: APolygon a -> Int
- pNull :: APolygon a -> Bool
- pNext :: APolygon a -> Int -> Int
- pPrev :: APolygon a -> Int -> Int
- pIsSimple :: Polygon -> Bool
- pIsConvex :: Polygon -> Bool
- pIsCCW :: Polygon -> Bool
- pScale :: Rational -> Polygon -> Polygon
- pAtCentroid :: Polygon -> Polygon
- pAtCenter :: Polygon -> Polygon
- pTranslate :: V2 Rational -> Polygon -> Polygon
- pCenter :: Polygon -> V2 Rational
- pBoundingBox :: Polygon -> (Rational, Rational, Rational, Rational)
- pIsInside :: Polygon -> V2 Rational -> Bool
- pAccess :: APolygon a -> Int -> V2 a
- pMkWinding :: Int -> Polygon
- pDeoverlap :: Polygon -> Polygon
- pCycles :: Polygon -> [Polygon]
- pCycle :: (Real a, Fractional a, Ord a) => APolygon a -> Double -> APolygon a
- pCentroid :: Polygon -> V2 Rational
- pMapEdges :: (V2 Rational -> V2 Rational -> a) -> Polygon -> Vector a
- pArea :: Polygon -> Rational
- pCircumference :: (Real a, Fractional a) => APolygon a -> a
- pCircumference' :: (Real a, Fractional a) => APolygon a -> Double
- pAddPoints :: Int -> Polygon -> Polygon
- pRayIntersect :: Polygon -> (Int, Int) -> (Int, Int) -> Maybe (V2 Rational)
- isValidTriangulation :: Polygon -> Triangulation -> Bool
- triangulationsToPolygons :: Polygon -> Triangulation -> [Polygon]
- ssspVisibility :: Polygon -> Polygon
- ssspWindows :: Polygon -> [(V2 Rational, V2 Rational)]
- pdualPolygons :: Polygon -> PDual -> [Polygon]
- triangle :: Polygon
- triangle' :: [P]
- shape1 :: Polygon
- shape2 :: Polygon
- shape3 :: Polygon
- shape4 :: Polygon
- shape5 :: Polygon
- shape6 :: Polygon
- shape7 :: Polygon
- shape8 :: Polygon
- shape9 :: Polygon
- shape10 :: Polygon
- shape11 :: Polygon
- shape12 :: Polygon
- shape13 :: Polygon
- shape14 :: Polygon
- shape15 :: Polygon
- shape16 :: Polygon
- shape17 :: Polygon
- shape18 :: Polygon
- shape19 :: Polygon
- shape20 :: Polygon
- shape21 :: Polygon
- shape22 :: Polygon
- shape23 :: Polygon
- concave :: Polygon
- pRing :: APolygon a -> Ring a
- pUnsafeMap :: (Ring a -> Ring a) -> APolygon a -> APolygon a
- pCopy :: Polygon -> Polygon
- pGenerate :: [(Double, Double)] -> Polygon
- pUnGenerate :: Polygon -> [(Double, Double)]
Documentation
Polygon | |
|
mkPolygonFromRing :: (Fractional a, Ord a) => Ring a -> APolygon a Source #
pAtCentroid :: Polygon -> Polygon Source #
pMkWinding :: Int -> Polygon Source #
pDeoverlap :: Polygon -> Polygon Source #
pCircumference :: (Real a, Fractional a) => APolygon a -> a Source #
pCircumference' :: (Real a, Fractional a) => APolygon a -> Double Source #
Triangulation
isValidTriangulation :: Polygon -> Triangulation -> Bool Source #
triangulationsToPolygons :: Polygon -> Triangulation -> [Polygon] Source #
Single-Source-Shortest-Path
ssspVisibility :: Polygon -> Polygon Source #