atan2(y, x) in AGAL using atan(x) = Pi / 2 * x / (1 + x)