Description Usage Arguments Details Value Author(s) References See Also Examples
Checks if points are in the interior of a polygon.
1 | in.polygon(x0, y0, x, y)
|
x0 |
coordinates of points to check |
y0 |
see |
x |
coordinates defining the polygon |
y |
see |
Uses a simple points-in-polygon check combined with the polygon
function.
Polygon is closed automatically.
comp1 |
Description of ‘comp1’ |
comp2 |
Description of ‘comp2’ |
Albrecht Gebhardt <agebhard@uni-klu.ac.at>
Follows an idea from algorithm 112 from CACM (available at http://www.netlib.org/tomspdf/112.pdf)
in.convex.hull
, polygon
, in.chull
1 2 | in.polygon(c(0,1),c(0,1),c(0,1,0,-1),c(-1,0,1,0))
# should give: TRUE FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.