> I wrote a PDL vectorized version of the 'points in a polygon' program a few
> years ago for my own use. [BTW Matt the problem was selecting points in a
> area of a color-color diagram]
>
> Here is the code. i/o are all vectors. Read it and weep :-)
>
> Karl
>
> # Test points tx,ty to be in a polygon following
> # http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html
>

*jaw bounces off floor* Okay, that's one slick algorithm. Puneet, does this
do the job you're after?

Matt
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to