i´m trying to implement this code in a dynamic plugin, but i don´t know really how it works...
If anybody has a moment to check it would be great, this is my first attempt to make a plugin.
Here there is a realted thread.
Thanks in advance,
Haven't looked at your code, but i guess it creates the formula of the line based on the 2 points you pass to the algorithm.
And of course this line (almost) always has 2 intersections with the circle.
I guess if you only want the intersection that lies between these 2 points, take the solution(x,y) where solution(x) is between P1(x) and P2(x) and solution(y) is between P1(y) and P2(y).
Its been a while since you posed the question but I recently started looking for the answer too. Andy McW and I went over the plugin to try and figure out a spreadable method and we got a very workable if not perfect solution.
The patch explains why but it ain't bad.
Here's the code if you wanna peak:
Hope its still helpful,
Be our guest!
Most of the credit goes to Andy McWilliams and your good self, though, co-opted the ideas into a something usable and lovely.
Looking forward to the lines version!
.Clear method wasn't recognised.
Taking advance of the situation...
I´m cleaning up the Multiple circle intersection plugin and, it shows variables even when there isn´t any solution.
Anyone knows how to return false (nil) when there isn´t any intersection?
It seems that the behaviour is different than the multiple lines intersect.
anonymous user login