Learn R Programming

PlotRegionHighlighter (version 1.0)

centersLineSegmentIntersections: Determine if a line intersects one or more line segments

Description

Determine if a line intersects one or more line segments. The segments are all pairwise combinations of points from a set of points

Usage

centersLineSegmentIntersections(tangent, centers)

Arguments

tangent
a three-item numeric vector containing the coefficients, a, b and c for a line in two-dimensions defined by ax + by + c = 0
centers
a two-column numeric matrix containing the x and y coordinates for a set of points to be used as the endpoints for the line segments

Value