Check the location of point(s) with respect to a polygon.
pinpoly(poly, pts)matrix containing the x,y-coordinates of the
vertices of the polygon boundary.
matrix of containing the x,y-coordinates of the
point locations.
An integer vector of indicators for each point in pts,
error when number of polygon vertices exceeds 3000;
outside the polygon;
at the polygon boundary;
inside the polygon.
This Fortran code comes from Wm Randolph Franklin, Electrical, Computer, and Systems Engineering Department, Rensselaer Polytechnic Institute, Troy, New York, at website http://www.ecse.rpi.edu/Homepages/wrf.
phat and mcseg.test