arctan2 needed here, or you flip signs.