hgeometric-0.0.2.2: A geometric library with bindings to GPC.

Algebra.Geometric.Clip

Description

Clip operations to Polygons and Strips.

Documentation

class Storable geometry => Clip geometry whereSource

Methods

difference :: Polygon -> Polygon -> IO geometrySource

An IO version of \\, which does not use unsafePerformIO.

intersection :: Polygon -> Polygon -> IO geometrySource

An IO version of /\, which does not use unsafePerformIO.

xor :: Polygon -> Polygon -> IO geometrySource

An IO version of <+>, which does not use unsafePerformIO.

union :: Polygon -> Polygon -> IO geometrySource

An IO version of \/, which does not use unsafePerformIO.

(\\) :: Polygon -> Polygon -> geometrySource

difference: Returns a Polygon with the area in the first Polygon and not in the second.

(/\) :: Polygon -> Polygon -> geometrySource

intersection: a Polygon with the area in both the first and the second Polygon.

(<+>) :: Polygon -> Polygon -> geometrySource

xor: Returns a Polygon with the area in the first or the second Polygon, but not in both.

(\/) :: Polygon -> Polygon -> geometrySource

union: Returns a Polygon with the area in the first or the second Polygon.

Instances