Learn R Programming

funModeling (version 1.8)

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, errors, mae, mape, mse, rmse, rsqa, rsq