Description Usage Arguments Value Examples
from algorithm described at: http://stackoverflow.com/questions/7069420/check-if-two-line-segments-are-colliding-only-check-if-they-are-intersecting-n
1 | do.lines.cross(start.line.one, end.line.one, start.line.two, end.line.two)
|
start.line.one |
list of coordinates c(x,y) for first point on first line |
end.line.one |
list of coordinates c(x,y) for second point on first line |
start.line.two |
list of coordinates c(x,y) for first point on second line |
end.line.two |
list of coordinates c(x,y) for second point on second line |
TRUE if lines cross, FALSE if lines do not
1 2 | do.lines.cross(start.line.one = c(0,0), end.line.one = c(1,1),
start.line.two = c(1,0), end.line.two = c(0,1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.