Dist: Distance from point to a line

Description Usage Arguments Value Author(s) Examples

View source: R/Dist.R

Description

Compute point to line distance, internal use.

Usage

1
Dist(x0, y0, A, B, C)

Arguments

x0

x coordinate of the point

y0

y coordinate of the point

A,B,C

coefficient for a line Ax+By+C=0.

Value

numeric value of the distance

Author(s)

Bo Li

Examples

1
2
3
x0=0.12
y0=0.45
d=Dist(x0,y0,1,1,-0.2)

Shicheng-Guo/CHAT documentation built on Oct. 30, 2019, 11:55 p.m.