Description Usage Arguments Value Examples
Intersects any number of circles to find the points at which they intersect.
1 | intersect_circles(x, y, r, nan.rm = FALSE)
|
x |
X coordinates of the circle centers |
y |
Y coordinates of the circle centers |
r |
Radiuses of the circles |
nan.rm |
Set to |
Return a matrix of x and y coordinates as well as the indices of the circles.
1 2 3 4 5 6 7 8 9 | r <- runif(5, 0.3, 0.8)
x <- runif(5)
y <- runif(5)
int <- intersect_circles(x, y, r)
int
draw_circles(x, y, r)
points(int[, 1], int[, 2], pch = 16)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.