powered by
Used in venn3 to tell whether proposed points are inside of the given circle.
circle.ind(ps, x, y, r)
a n x 2 matrix of coordinates.
the x coordinate of the center of the circle.
the y coordinate of the center of the circle.
the radius of the circle.
a length n vector telling whether each row of ps is inside the given circle.
# NOT RUN { ps <- cbind(runif(100), runif(100)) plot(dga:::circle(0, 0, 1), type = "l") inds <- dga:::circle.ind(ps, 0, 0, 1) points(inds) # }
Run the code above in your browser using DataLab