Learn R Programming

pathmapping (version 1.0.2)

linesIntersect:

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.