linesIntersect {pathmapping}R 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.


[Package pathmapping version 1.0.2 Index]