Shortes distance from a point o a 2d segment

Description

Shortes distance from a point o a 2d segment

Usage

1

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.