Safe Haskell | None |
---|---|
Language | Haskell2010 |
Waterfall.TwoD.Booleans
Description
Boolean Operations operations on Shape
.
Synopsis
- union2D :: Shape -> Shape -> Shape
- difference2D :: Shape -> Shape -> Shape
- intersection2D :: Shape -> Shape -> Shape
- unions2D :: [Shape] -> Shape
- intersections2D :: [Shape] -> Shape
- emptyShape :: Shape
Documentation
union2D :: Shape -> Shape -> Shape Source #
Take the union of two 2D shapes. The region occupied by either one of them
difference2D :: Shape -> Shape -> Shape Source #
Take the difference of two 2D shapes. The region occupied by the first, but not the second
intersection2D :: Shape -> Shape -> Shape Source #
Take the intersection of two 2D shapes. The region occupied by both of them
unions2D :: [Shape] -> Shape Source #
Take the union of a list of 2D shapes
May be more performant than chaining multiple applications of union2D
intersections2D :: [Shape] -> Shape Source #
Take the intersection of a list of 2D shapes
May be more performant than chaining multiple applications of intersection2D
emptyShape :: Shape Source #
An empty 2D shape