Learn R Programming

mathart (version 0.0.0.9000)

does_intersect: Does intersect

Description

Determine if two line segments, ab and cd, intersect

Usage

does_intersect(a, b, c, d, smidgin = 1e-06)

Arguments

a

Numeric vector of length 2 containin Point a (x, y) co-ordinates

b

Numeric vector of length 2 containin Point b (x, y) co-ordinates

c

Numeric vector of length 2 containin Point c (x, y) co-ordinates

d

Numeric vector of length 2 containin Point d (x, y) co-ordinates

smidgin

Tolerance parameter used when checking if the intersection is in the interior of both line segments

Examples

Run this code
# NOT RUN {
does_intersect()
# }

Run the code above in your browser using DataLab