any_intersect: Check if a line has intersecting segments

Description Usage Arguments Value Examples

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
check_results <- any_intersect(currSecEx)
check_results$any #true/false
check_results$val #indices of first intersection found

IceCast documentation built on June 24, 2019, 9:03 a.m.