The output of atan2(-1,1) in Matlab is 0.7854 ...