A device for performing ophthalmic measurements on an eye is presented. The device comprises a plurality of first light sources each configured to emit light towards a cornea of the eye and a plurality of first optical detectors each configured to generate a two-dimensional image of a plurality of light spots each resulting from light emitted by one of the plurality of first light sources and reflected by the cornea towards the corresponding first optical detector. The device further comprises a controller configured to determine topographic features of the cornea and a position of the eye with respect to the device by performing raytracing on a modelled optical configuration and by comparing results of the raytracing with positions of the plurality of first light sources and/or with positions of the light spots in the two-dimensional images. Further, a method for performing ophthalmic measurements on an eye is presented.