Description Usage Arguments Value Examples

View source: R/selfIntersections.R

Find if two line segments intersect

1 | ```
checkIntersect(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 | ```
checkIntersect(c(0, 0), c(1, 1), c(2, 2), c(3, 3))
checkIntersect(c(0, 0), c(1, 1), c(0.5, 0.5), c(2, 2))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.