calc_direction(direction)