MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: testing if a point is inside a polygon

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96238] Re: testing if a point is inside a polygon
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 10 Feb 2009 05:49:03 -0500 (EST)
  • References: <gmp0mt$btn$1@smc.vnet.net>

Hi,

the web is full of this test as well as any graphics
book. Look at
http://local.wasp.uwa.edu.au/~pbourke/geometry/insidepoly/
http://tog.acm.org/editors/erich/ptinpoly/

Regards
   Jens

Mitch Murphy wrote:
> 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
> 


  • Prev by Date: Consultant Needed
  • Next by Date: Memory leak caused by JavaNew[...] (JLink package)
  • Previous by thread: Re: Re: Re: testing if a point is
  • Next by thread: Re: testing if a point is inside a polygon