Two-dimensional optical measurement of wave slope.