Re: testing if a point is inside a polygon
- To: mathgroup at smc.vnet.net
- Subject: [mg96284] Re: [mg96189] testing if a point is inside a polygon
- From: Adriano Pascoletti <adriano.pascoletti at dimi.uniud.it>
- Date: Wed, 11 Feb 2009 05:16:55 -0500 (EST)
- References: <200902091032.FAA12225@smc.vnet.net>
Mitch, the problem was discussed by the mathgroup in 2000 and Luc Barthelet has collected some results at http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Notebook:PointInsidePolygon.nb Adriano Pascoletti 2009/2/9 Mitch Murphy <mitch at lemma.ca> > > is there a way to test whether a point is inside a polygon? ie. > > PointInsidePolygonQ[point_,polygon_] -> True or False > > i'm trying to do something like ... > > > ListContourPlot[table,RegionFunction->CountryData["Canada","Polygon"]] > > to create what would be called a "clipping mask" in photoshop. > > cheers, > Mitch > >
- References:
- testing if a point is inside a polygon
- From: Mitch Murphy <mitch@lemma.ca>
- testing if a point is inside a polygon