point2LineDist: point2LineDist

View source: R/geometricThreshold.R

point2LineDistR Documentation

point2LineDist

Description

Calculates the distance between point x to the line defined by p1 and p2. ref: https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line

Usage

point2LineDist(p1, p2, x)

Arguments

p1

Point 1 c(x,y)

p2

Point 2 c(x,y)

x

Point which distance should be calculated in relation to line formed by p1 and p2.

Value

Distance of x to line defined by p1 and p2


CeMOS-Mannheim/PlaquePicker documentation built on Sept. 30, 2022, 5:54 a.m.