Two-dimensional generalizations of the Newcomb equation