Code that I think works for the azimuthal angle change, next is the inclination