Description Usage Arguments Value Examples
Find if two line segments intersect
1 | check_intersect(a, b, c, d, seq = FALSE)
|
a |
first coordinate of first line segment |
b |
second coordinate of first line segment |
c |
first coordinate of second line segment |
d |
second coordinate of second line segment |
seq |
indicator for whether the two line segments are intersecting |
boolean indicating if there is an intersection
1 2 | check_intersect(c(0, 0), c(1, 1), c(2, 2), c(3, 3))
check_intersect(c(0, 0), c(1, 1), c(0.5, 0.5), c(2, 2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.