Re: [R] Intersection between circle and line?

2011-09-27 Thread Chris82
Thanks! In principle it is a mathematical problem. I have already found some solutions with google. I thought there is maybe an existing R function or package which handel this stuff. But it seems not to be. sos package gives me no suitable information for that. With best regards -- View this

[R] Intersection between circle and line?

2011-09-26 Thread Chris82
Dear R users, I am thinking about an easy and especially fast solution to calculate the x,y coordinates of the interesection between the borders of the red circle and the line. short example: plot(c(-3,0,3,9,21),c(-8,0,5,12,25)) draw.circle(0,0,radius=6,border=red,col=NA,lty=1,lwd=1) x -

Re: [R] Intersection between circle and line?

2011-09-26 Thread David Winsemius
On Sep 26, 2011, at 11:03 AM, Chris82 wrote: Dear R users, I am thinking about an easy and especially fast solution to calculate the x,y coordinates of the interesection between the borders of the red circle and the line. This would seem to be the solution to two simultaneous equations