does_intersect: Does intersect

Description Usage Arguments Examples

View source: R/does_intersect.R

Description

Determine if two line segments, ab and cd, intersect

Usage

1
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

1

marcusvolz/mathart documentation built on May 24, 2021, 4:16 p.m.