Learn R Programming

lares (version 4.7)

dist2d: Distance from specific point to line

Description

This function lets the user calculate the mathematical linear distance Between a specific point and a line (given geometrical 3 points)

Usage

dist2d(a, b = c(0, 0), c = c(1, 1))

Arguments

a

Vector. Coordinates of the point from which we want to measure the distance

b

Vector. Coordinates of 1st point over the line

c

Vector. Coordinates of 2st point over the line

See Also

Other Calculus: ROC, conf_mat, corr, deg2num, errors, loglossBinary, mae, mape, model_metrics, mse, quants, rmse, rsqa, rsq