2D polygonal collision-detection and internal edges | Hacker News Reader