Pick a handful of points on the plane — call them sites: fire stations, cell towers, coffee shops, whatever you like. Now ask one question, over and over, for every other point in space: which site is closest to me?
Answer that question everywhere at once and something remarkable happens: the plane snaps into a patchwork of cells, one per site, where every location inside a cell is nearer to that site than to any other. That patchwork is the Voronoi diagram, named for the mathematician Georgy Voronoi, who studied it in 1908 (Descartes had sketched the same idea for planetary orbits centuries earlier).
The rule sounds almost too simple to be interesting — "closest wins" — yet it produces sharp straight-edged borders, sudden corners where three or more territories meet, and a structure so useful it shows up in biology, robotics, astronomy and your phone's cell-tower handoff. Drag a single site and, as you're about to see, the whole map redraws around it.
Comments
Loading comments...