to get the azimuth result in degrees

azimuth = ( x ATN -y) */ 360