Compute the straight-line distance between two points in 3D space using d = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²].
输入两点 (x1,y1,z1) 与 (x2,y2,z2),求三维距离。
| 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 |