3D Distance Calculator
Compute the straight-line distance between two points in 3D space using d = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²].
📐 計算公式
空間兩點距離:d = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²](三維歐氏距離,算例 Δ=(3,4,12) → d=13)。校驗:無強校驗,非數輸入落 «—» 兜底。判據:無固定分級,結果保留 3 位小數,任一座標分量增大距離不減。
輸入兩點 (x1,y1,z1) 與 (x2,y2,z2),求三維距離。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| 3D distance | d = √(Δx² + Δy² + Δz²) | Euclidean distance |
| Generalisation | Same form in n dimensions | Analytic geometry |
| 2D case | Drop z term for plane | Plane geometry |
| Metric properties | Non-negative, symmetric, triangle inequality | Metric axioms |
| Unit consistency | All coordinates same unit | Calculation note |
| Applications | 3D modelling, spatial analysis | Computational geometry |
📌 計算說明
- d=√[(Δx)²+(Δy)²+(Δz)²]。
- 3,4,12 → d=13。