line_bearing function

Find the bearing of straight lines