Finding rectangle nearest to point | Hacker News Reader