I want to compute the difference/intersection between two paths. By path I mean a list of points that can be created by the following actions on a graphics context:
- move to x, y
- line to x, y
- Bézier to x, y
How could I do that? What's the best algorithm to compute the difference/intersection between two paths, A - B? What if there's a simplification where B is guaranteed to be a rectangle?