distancePointSegment: Calculate distance from point to line segment

View source: R/distance_point_segment.R

distancePointSegmentR Documentation

Calculate distance from point to line segment

Description

Calculate distance from point to line segment

Usage

distancePointSegment(px, py, x1, y1, x2, y2)

Arguments

px

x-coordinate for point

py

y-coordinate for point

x1

x-coordinate for the first point from the line segement

y1

y-coordinate for the first point from the line segement

x2

x-coordinate for the second point from the line segement

y2

y-coordinate for the second point from the line segement

Value

numeric value


Rosenkrands/dz documentation built on June 26, 2022, 10:43 p.m.