dist2d: Calculate the distance between a line and a point

Description Usage Arguments Value Note

View source: R/helper_functions.R

Description

The line is defined by points b and d.

Usage

1
dist2d(p, b = c(0, 0), d = c(1, 1))

Arguments

p

Point c(x, y)

b, d

Points c(x, y) defining the line to calculate the distance with.

Value

The units of distance between the point and the line

Note

Change the d point to change the direction of the diagonal


llrs/integration-helper documentation built on Sept. 24, 2021, 10:57 a.m.