Comparison of the signs of the arguments of the atan2 function with a graph of the tangent function by CMG Lee. The green arrows show two results of the atan2 function depending on the sign of the arguments.
Own work
Cmglee