Point-to-Line Distance Calculator
Compute the shortest distance from point (x₀,y₀) to line Ax + By + C = 0 using d = |Ax₀ + By₀ + C| / √(A² + B²).
📐 計算公式
d = |Ax₀+By₀+C| / √(A²+B²)。 原點到 x+y−1=0 距離為 0.7071。
點 (x₀,y₀) 到直線 Ax+By+C=0 的最短距離。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Point-line distance | d = |Ax₀ + By₀ + C|/√(A² + B²) | Analytic geometry |
| General line form | Ax + By + C = 0 | Line equation |
| Vector derivation | d = |n̂·(P − P₀)| | Projection method |
| 3D extension | Same form for point-plane | 3D analytic geometry |
| Foot of perpendicular | From projection formula | Analytic geometry |
| Units | Length, same as coordinates | Dimensional rules |
📌 計算說明
- d = |Ax₀+By₀+C| / √(A²+B²)。
- 原點到 x+y−1=0 距離為 0.7071。