View source: R/distance_point_segment.R
distancePointSegment | R Documentation |
Calculate distance from point to line segment
distancePointSegment(px, py, x1, y1, x2, y2)
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 |
numeric value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.