ShortestDistance: Shortes distance from a point o a 2d segment

View source: R/Utility.R

ShortestDistanceR Documentation

Shortes distance from a point o a 2d segment

Description

Shortes distance from a point o a 2d segment

Usage

ShortestDistance(p, line)

Arguments

p

coordinates of a point

line

a 2x2 matrix with the coordinates of two points defining a line

Value

A numeric value, the Euclidean distance of point p to the line.

See Also

data2hist function and DouglasPeucker function


Airpino/HistDAWass documentation built on Jan. 30, 2024, 7:53 p.m.