Le 13/02/2012 17:47, reckoner a écrit :

I'm trying to test whether or not the origin is contained inside the
following triangle
inscribed inside a circle:

> th = array([ 2.3913423,  5.3133123,  1.8516171])
> p=patch.Polygon(array([cos(th),sin(th)]).T)

What do you mean by "patch" here?

I tested

p=Polygon(array([cos(th),sin(th)]).T)
p.contains_point((0,0))

and the answer is 1.

Jerzy Karczmarczuk




------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to