perpendicular.distance: Distance from a point to a line (so its the perpendicular...

Description Usage Arguments Details Arguments details

Description

Distance from a point to a line (so it's the perpendicular distance).

Usage

1

Arguments

b

Intercept.

m

Slope.

x

Coordinates.

y

Coordinates.

Details

Find distance from a pt (x then y coords) to a line segment given as start and end points. Either x, y or end points can be vectors, but not both.

It first finds perpendicular distance, then distance to each end point, and returns the minimum.

Arguments details

If both b, m and x, y are vectors, they must all be same length.

Note check for infinite slope, meaning that the intercept b is the x-intercept.


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