linesIntersect: Checks whether two line segments intersect.

Description Usage Arguments Value Note

View source: R/linesIntersect.R

Description

Checks whether two line segments intersect.

Usage

1
linesIntersect(A1, A2, B1, B2)

Arguments

A1

one end of line A (x,y) pair

A2

other end of line A (x,y) pair

B1

one end of line B (x,y) pair

B2

other end of line B (x,y) pair

Value

returns a boolean value indicating whether there is an intersection.

Note

Results may not be consistent if intersection happens exactly at one end of a segment, due to rounding error.


pathmapping documentation built on May 2, 2019, 4:20 a.m.