Found a good fast way to calculate direction.