Closest Pair of Points Animation by Y. Daniel Liang

Usage: The animation draws a line that connects two nearest points. Click the left mouse button to add a point at the mouse point and the right button to remove on a point at the mouse point.