powered by
in.chull(x0, y0, x, y)
x0
x
chull
in.convex.hull
in.chull(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