This function returns a logical vector indicating which elements of the given points P0 are left of the directed edge P1->P2.
left(x0, y0, x1, y1, x2, y2)
Numeric vector, 'x' coordinates of points P0 to check
Numeric vector, 'y' coordinates of points P0 to check, same length as 'x'.
'x' coordinate of point P1
'y' coordinate of point P1
'x' coordinate of point P2
'y' coordinate of point P2
Logical vector.
in.convex.hull
# NOT RUN { left(c(0,0,1,1),c(0,1,0,1),0,0,1,1) # }
Run the code above in your browser using DataLab