A method of investigating an object by means of a reflectable radiation beam which forms a spot on the object which is movable relative to the object, while a portion of the radiation beam reflected by the object is detected by an optical detector, characterized in that the optical detector and a multidimensional image sensor have a common optical axis which is perpendicular to a reference plane through the object, while the positions of the spot on the object projected onto the reference plane are determined from the reflected portion of the radiation beam detected by means of the optical detector during the displacement of the radiation beam over a predetermined track, the desired positions of the spot relative to the object projected onto the reference plane being determined by means of the image sensor, after which differences between the actual and the desired positions of the spot are determined as a measure for differences in distance from the objects to the reference plane along the predetermined track.