title: Get an intersection of two paths with D3
body: <p>I used a solution from <a href="https://stackoverflow.com/questions/12830656/is-it-possible-to-get-intersection-area-of-two-paths-with-raphael">this answer</a> 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.</p>
  
  <p>Are there plugins or other ways to have the functionality like <a href="http://raphaeljs.com/reference.html#Raphael.pathIntersection" rel="nofollow noreferrer">pathIntersection()</a> function of Raphael?</p>
  
  <p>Is it a good idea to extract that very function from Raphael and put inside my code?</p>