whichhalfplane | R Documentation |
Given an infinite line and a spatial point location, determine which side of the line the point falls on.
whichhalfplane(L, x, y = NULL)
L |
Object of class |
x , y |
Arguments acceptable to |
An infinite line L
divides the two-dimensional plane into
two half-planes. This function returns a matrix M
of logical values
in which M[i,j] = TRUE
if the j
th spatial point
lies below or to the left of the i
th line.
A logical matrix.
.
infline
L <- infline(p=runif(3), theta=runif(3, max=2*pi))
X <- runifrect(4)
whichhalfplane(L, X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.