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 distanced = √(Δx² + Δy² + Δz²)Euclidean distance
GeneralisationSame form in n dimensionsAnalytic geometry
2D caseDrop z term for planePlane geometry
Metric propertiesNon-negative, symmetric, triangle inequalityMetric axioms
Unit consistencyAll coordinates same unitCalculation note
Applications3D modelling, spatial analysisComputational geometry
📌 計算說明
  • d=√[(Δx)²+(Δy)²+(Δz)²]。
  • 3,4,12 → d=13。