.distancePointLine {CoreGx} | R Documentation |
This function calculates the shortest distance between a point and a line in 2D space.
.distancePointLine(x, y, a = 1, b = 1, c = 0)
x |
x-coordinate of point |
y |
y-coordinate of point |
a |
|
b |
|
c |
|
numeric
The shortest distance between a point and a line.
.distancePointLine(0, 0, 1, -1, 1)