quick implementation of cardinal_to_bearing