linesIntersect: Checks whether two line segments intersect.

View source: R/linesIntersect.R

linesIntersectR Documentation

Checks whether two line segments intersect.

Description

Checks whether two line segments intersect.

Usage

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.


stmueller/pathmapping documentation built on Nov. 13, 2023, 12:39 p.m.