An apparatus for wavefront detection includes a wavefront source for the
production of a wavefront, an optical system transforming the wavefront,
a diffraction grating through which the transformed wavefront passes, and
a spatially resolving detector following the diffraction grating. The
wavefront source has a two-dimensional structure.