In coordinate geometry, the distance between two points (x1, y1) and (x2, y2) is given by:
D = √[(x₂ - x₁)² + (y₂ - y₁)²]
This simulation helps visualize this distance on a 2D coordinate plane.