Description Usage Arguments Value Examples
This function calculates the shortest distance between a point and a line in 2D space.
1 | .distancePointLine(x, y, a, b, c)
|
x |
x-coordinate of point |
y |
y-coordinate of point |
a |
coefficient in line equation a * x + b * y + c = 0 |
b |
coefficient in line equation a * x + b * y + c = 0 |
c |
coefficient in line equation a * x + b * y + c = 0 |
numeric
The shortest distance between a point and a line
1 | .distancePointLine(0, 0, 1, -1, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.