I'm trying to help out a javascript based vector graphics project (
paper.js) (and also use it in my project

) by making a library or function that can do path operations like union, difference, intersection, etc. Does anyone know where the code for this is? Can anyone explain it? :S I've been doing a lot of research on cubic spline graphing, and finding the intersection of two of them seems like an impossible task (here's a wolfram alpha of the inverse of the cubic spline rendering algorithm:
original,
inverseI thought of a bunch of ways to find intersections, like gradually upping the input's precision and finding the closest points until a match is found, but honestly you guys know it best.
Can anyone help me? Sorry for the trouble, I really want to share inkscape's glory! Thank you!
EDIT: Just fixed some links.