powered by
Determine if there are any intersecting line segments in a matrix of coordinates representing a line
any_intersect(line)
matrix of coordinates corresponding to the line of interest
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
list$any
list$val
# NOT RUN { check_results <- any_intersect(currSecEx) check_results$any #true/false check_results$val #indices of first intersection found # }
Run the code above in your browser using DataLab