anyIntersect: Check if a line has intersecting segments

Description Usage Arguments Value Examples

View source: R/selfIntersections.R

Description

Determine if there are any intersecting line segments in a matrix of coordinates representing a line

Usage

1

Arguments

line

matrix of coordinates corresponding to the line of interest

Value

list where list$any is a boolean indicating if there are any intersections and list$val is an index corresponding to the first intersection found

Examples

1
2
3
checkResults <- anyIntersect(currSecEx)
checkResults$any #true/false
checkResults$val #indices of first intersection found

IceCast documentation built on Aug. 16, 2017, 9:03 a.m.