You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently nightgraphics' Shaped triat has a difference operation. In addition to that it should have union and intersection.
Tasks
Add union operation to Shaped trait
Add intersection operation to Shaped trait (this very well might share a lot of code with difference)
Consider returning a Result as 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?
Currently
nightgraphics'Shapedtriat has adifferenceoperation. In addition to that it should haveunionandintersection.Tasks
unionoperation toShapedtraitintersectionoperation toShapedtrait (this very well might share a lot of code withdifference)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?