powered by
in.polygon(x0, y0, x, y)
x0
x
polygon
Polygon is closed automatically.
in.convex.hull
in.chull
in.polygon(c(0,1),c(0,1),c(0,1,0,-1),c(-1,0,1,0)) # should give: TRUE FALSE
Run the code above in your browser using DataLab