Distance from point to line
Measure the shortest perpendicular distance from a point to the infinite straight line defined by A×x + B×y + C = 0.
Reflect a point across a line written as ax + by + c = 0.
Reflect a point across a line written as ax + by + c = 0.
x-a*(2*(a*x+b*y+c)/(a^2+b^2))y-b*(2*(a*x+b*y+c)/(a^2+b^2))Line coefficients a and b cannot both be zero. Use an orthonormal Cartesian coordinate system; nonuniform map scales do not preserve this reflection.
Results are rounded for display; calculations use unrounded values. Read our calculation methodology.
Reflect a point across a line written as ax + by + c = 0. The original and reflected points are equally distant from the line on opposite sides.
The original and reflected points are equally distant from the line on opposite sides.
| Input | Example |
|---|---|
Point x x | 3 |
Point y y | 4 |
Line x coefficient a | 1 |
Line y coefficient b | 0 |
Line constant c | 0 |
Line coefficients a and b cannot both be zero. Use an orthonormal Cartesian coordinate system; nonuniform map scales do not preserve this reflection.
Use the displayed example inputs in the stated formula. Keep each quantity in its labelled unit and compare the unrounded result before applying display rounding.