arctan result in degrees, range -90 to 90
arctan(1.0000) = 45.0000 degrees
Next steparctan always returns an angle in the range -90 to 90 degrees (-pi/2 to pi/2 radians). For angles outside that range, you need atan2 with both opposite and adjacent signs.