2

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?

Community
  • 1
  • 1
Sergei Basharov
  • 51,276
  • 73
  • 200
  • 335
  • 1
    There's the [intersection library](http://www.kevlindev.com/gui/math/intersection/). If they are just simple paths than you can of course also just compute the intersection yourself. – Lars Kotthoff May 08 '14 at 16:47
  • Did you ever find a solution? I have a [similar issue](http://stackoverflow.com/questions/33358328/how-can-i-detect-the-intersection-of-lines-on-a-d3-geo-globe) – tmsimont Oct 27 '15 at 03:06

0 Answers0