intersection.of.lines: Finds the point where 2 lines intersect, given lines as 2...

Description Usage

Description

Finds the point where 2 lines intersect, given lines as 2 parameters each (intercept b then slope m).

If the two lines are identical, it returns NAs. Note the check for both slopes being infinite (vertical lines).

This is vectorized: either pair can be vector if other pair is atomic, or both can be same length vectors.

Usage

1
intersection.of.lines(b1, m1, b2, m2)

forestgeo/ctfs documentation built on May 3, 2019, 6:44 p.m.