hgeometry-0.8.0.0: Geometric Algorithms, Data structures, and Data types.

Copyright(C) Frank Staals
Licensesee the LICENSE file
MaintainerFrank Staals
Safe HaskellNone
LanguageHaskell2010

Data.Geometry.PlanarSubdivision

Description

Data type to represent a PlanarSubdivision

Synopsis

Documentation

fromPolygon Source #

Arguments

:: (Ord r, Fractional r) 
=> proxy s 
-> Polygon t p r 
-> f

data inside

-> f

data outside the polygon

-> PlanarSubdivision s p () f r 

Construct a planar subdivision from a polygon. Since our PlanarSubdivision models only connected planar subdivisions, this may add dummy/invisible edges.

running time: \(O(n)\) for a simple polygon, \(O(n\log n)\) for a polygon with holes.