3D Distance Metrics Visualization
Compare Manhattan (diamond), Euclidean (sphere), and Chebyshev (cube) distance metrics in 3D space
Point A: (2, 3, 1)
Point B: (7, 1, 5)
Manhattan Distance
11.0
|x₂-x₁| + |y₂-y₁| + |z₂-z₁|
5 + 2 + 4 = 11
Euclidean Distance
6.71
√[(x₂-x₁)² + (y₂-y₁)² + (z₂-z₁)²]
√[25 + 4 + 16] = √45
Chebyshev Distance
5.0
max(|x₂-x₁|, |y₂-y₁|, |z₂-z₁|)
max(5, 2, 4) = 5
🖱️ Mouse: Rotate view
🖱️ Wheel: Zoom in/out
🔴 Red/Green/Blue: Manhattan path (X→Y→Z)
🟢 Green Arrow: Euclidean path (direct)
🔵 Blue Dots: Chebyshev path (diagonal)