Learn R Programming

RSD (version 0.2.0)

calc.intersection: Calculates the intersection point of two lines.

Description

Given the start and end coordinates of two straight lines, we calculate the intersection point of them.

Usage

calc.intersection(x1, x2, y11, y12, y21, y22)

Value

A list, including the coordinates of the intersection point.

Arguments

x1, x2

Float values.

y11, y12

Float values, corresponding to the first line.

y21, y22

Float values, corresponding to the second line.

Details

Having intersection point has been checked before.

See Also

[has.intersect()]