MathGroup Archive 2009

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

Search the Archive

testing if a point is inside a polygon


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