[R] Is a point into an ellipse

Alain Guillet alain.guillet at uclouvain.be
Wed Apr 8 17:17:44 CEST 2009


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 to the drawn ellipse.


Regards,
Alain

-- 
Alain Guillet
Statistician and Computer Scientist

SMCS - Institut de statistique - Université catholique de Louvain
Bureau d.126
Voie du Roman Pays, 20
B-1348 Louvain-la-Neuve
Belgium

tel: +32 10 47 30 50




More information about the R-help mailing list