I used a solution from this answer to find an intersection of two simple paths, just lines. I wonder how I can do it without using Raphael, because I use D3 in the project and want to avoid other libs if possible, especially when need to run small tasks.
Are there plugins or other ways to have the functionality like pathIntersection() function of Raphael?
Is it a good idea to extract that very function from Raphael and put inside my code?