Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Constructive Solid Geometry \(CSG\) operations on Solid
.
Synopsis
- union :: Solid -> Solid -> Solid
- difference :: Solid -> Solid -> Solid
- intersection :: Solid -> Solid -> Solid
- complement :: Solid -> Solid
Documentation
union :: Solid -> Solid -> Solid Source #
Take the sum of two solids
The region occupied by either one of them.
difference :: Solid -> Solid -> Solid Source #
Take the difference of two solids
The region occupied by the first, but not the second.
intersection :: Solid -> Solid -> Solid Source #
Take the intersection of two solids
The region occupied by both of them.
complement :: Solid -> Solid Source #
Invert a Solid, equivalent to not
in boolean algebra.
The complement of a solid represents the solid with the same surface, but where the opposite side of that surface is the "inside" of the solid.
Be warned that complement nowhere
does not appear to work correctly.