Learn R Programming

IceCast (version 2.1.0)

any_intersect: Check if a line has intersecting segments

Description

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

Usage

any_intersect(line)

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

Run this code
# 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