Distance from Point to Line
Find perpendicular distance and projected point for Ax+By+C=0.
Your numbers
Distance at right angle to line
Use consistent units. Result follow the assumptions wey you enter.
Compare scenarios
You fit keep up to three snapshots for this tab. Loading one go replace the present inputs.
Formula
Use d = abs(Ax+By+C)/√(A²+B²) for di line Ax+By+C = 0 and point (x,y). abs mean absolute value. Di line coefficients A and B no fit both be zero.
Find perpendicular distance and projected point for Ax+By+C=0.
Example wey show the calculation
- Coefficient A for the line
- 3
- Coefficient B for the line
- 4
- Coefficient C for the line
- -5
- x coordinate for the point
- 1
- y coordinate for the point
- 2
- Distance at right angle to line
- 1.2
- x coordinate for projected point
- 0.28
- y coordinate for projected point
- 1.04
Where e fit work and limits
Use consistent units. Result follow the assumptions wey you enter.
We check inputs for missing values and allowed ranges. Result wey pass the finite numeric range no go show. Rounding affect wetin display, while calculation use the model numeric precision.
Check your units and assumptions before you rely on result. Changing label no convert currency or physical unit.
Version of di formula: 7e1d77c48425 · Example don get check: