Round a direction vector to an 8-way compass | Hacker News Reader