Description Usage Arguments Details Value See Also Examples
pnp
is able to determine if a point is within a polygon in 2D space.
The polygon is described by its corner points. The points must be in a correct
drawing order.
Based on this solution: Copyright (c) 1970-2003, Wm. Randolph Franklin http://wrf.ecse.rpi.edu/pmwiki/pmwiki.php/Main/Software#toc24
1 | pnp(vertx, verty, testx, testy)
|
vertx |
vector of x axis values of polygon corner points |
verty |
vector of y axis values of polygon corner points |
testx |
x axis value of point of interest |
testy |
y axis value of point of interest |
For discussion see: http://stackoverflow.com/questions/217578/how-can-i-determine-whether-a-2d-point-is-within-a-polygon/2922778#2922778
boolean value - TRUE, if the point is within the polygon. Otherwise FALSE.
Other pnpfuncs: pnpmulti
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.