Re: [R] Is a point into an ellipse

2009-04-08 Thread Duncan Murdoch
On 4/8/2009 11:17 AM, Alain Guillet wrote: Hi, I drew an ellipse with the package ellipse. Now I would like to know if a point is inside the ellipse. Is any R functions to do it without computing the equation of the ellipse manually? Thanks. For example, if I do "plot(ellipse(0.8), type = '

[R] Is a point into an ellipse

2009-04-08 Thread Alain Guillet
Hi, I drew an ellipse with the package ellipse. Now I would like to know if a point is inside the ellipse. Is any R functions to do it without computing the equation of the ellipse manually? Thanks. For example, if I do "plot(ellipse(0.8), type = 'l')", I would like to know if (0,1) belongs