dist.2d.line.Rd
Computes 2D orthogonal distance between a point and a line given the points coordinates and the line's slope and intercept or model formula
dist.2d.line(x = NULL, y = NULL, slope = NULL, intercept = NULL, form = NULL)
numeric, the x coordinate of the point
numeric, the y coordinate of the point
numeric, the slope of the line
numeric, the slope of the line
formula of type lm
describing the line, ignored if slope
and intercept
are specified
The distance between the point and line
if slope
and intercept
are missing, a model formula of form lm(y~x)
can be passed to form
.