DIP+CV · Interactive Simulator

EP01_01 Simulator: Euclidean, City-block, and Chessboard Distances

🎮 EP01_01 Simulator: Distance Metrics in Discrete Space Euclidean vs City-block vs Chessboard

Click and drag the points A or B on the Cartesian plane or adjust their coordinates below to compare the three distance metrics in real time.

📐 EUCLIDEAN (L2)
5.00
√(Δx² + Δy²)
🧱 CITY-BLOCK (L1)
7.00
|Δx| + |Δy|
🏁 CHESSBOARD (L∞)
4.00
max(|Δx|, |Δy|)
👆 Drag points A (Purple) or B (Orange) on the grid.
Point A
Point B
Geometric Legend: Dashed line (Euclidean), orthogonal L-shaped path (City-block) and highlight of the maximum dimension (Chessboard).
Euclidean City-block Chessboard (Max)
Description: Figure 1.11: EP01_01 Simulator: Euclidean, City-block, and Chessboard Distances