nightgraph
nightgraph copied to clipboard
Boolean geometric operations
Currently nightgraphics' Shaped triat has a difference operation. In addition to that it should have union and intersection.
Tasks
- [ ] Add
unionoperation toShapedtrait - [ ] Add
intersectionoperation toShapedtrait (this very well might share a lot of code withdifference) - [ ] Consider returning a
Resultas some operations do not make sense. For example, what does a the difference of 2 non-closed shapes imply? What about the union of a circle and a line?