MathGroup Archive 2009

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

Search the Archive

testing if a point is inside a polygon

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96189] testing if a point is inside a polygon
  • From: Mitch Murphy <mitch at lemma.ca>
  • Date: Mon, 9 Feb 2009 05:32:10 -0500 (EST)

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: Re: Time Series Simulations
  • Next by Date: reference to cite for ProteinData[]
  • Previous by thread: Re: How to simplify?
  • Next by thread: Re: testing if a point is inside a polygon