Switch to vector directions.

Instead of storing angles. Makes computing ray directions about 3 times
faster.