A detector for determining a position of at least one object, comprising: - at least one transversal optical sensor, the transversal optical sensor being adapted to determine a transversal position of at least one light beam traveling from the object to the detector, the transversal position being a position in at least one dimension perpendicular an optical axis of the detector, the transversal optical sensor being adapted to generate at least one transversal sensor signal; - at least one longitudinal optical sensor, wherein the longitudinal optical sensor has at least one sensor region, wherein the longitudinal optical sensor is designed to generate at least one longitudinal sensor signal in a manner dependent on an illumination of the sensor region by the light beam, wherein the longitudinal sensor signal, given the same total power of the illumination, is dependent on a beam cross-section of the light beam in the sensor region; - at least one evaluation device, wherein the evaluation device is designed to generate at least one item of information on a transversal position of the object by evaluating the transversal sensor signal and to generate at least one item of information on a longitudinal position of the object by evaluating the longitudinal sensor signal, wherein by detecting a transversal position of a light spot generated by the light beam impinging on a sensor region of the transversal optical sensor the transversal position or at least one item of information on the transversal position of the object is generated, characterized in that the transversal optical sensor and the longitudinal optical sensor are independent optical sensors. - at least one transversal optical sensor, the transversal optical sensor being adapted to determine a transversal position of at least one light beam traveling from the object to the detector, the transversal position being a position in at least one dimension perpendicular an optical axis of the detector, the transversal optical sensor being adapted to generate at least one transversal sensor signal; - at least one longitudinal optical sensor, wherein the longitudinal optical sensor has at least one sensor region, wherein the longitudinal optical sensor is designed to generate at least one longitudinal sensor signal in a manner dependent on an illumination of the sensor region by the light beam, wherein the longitudinal sensor signal, given the same total power of the illumination, is dependent on a beam cross-section of the light beam in the sensor region; - at least one evaluation device, wherein the evaluation device is designed to generate at least one item of information on a transversal position of the object by evaluating the transversal sensor signal and to generate at least one item of information on a longitudinal position of the object by evaluating the longitudinal sensor signal, wherein by detecting a transversal position of a light spot generated by the light beam impinging on a sensor region of the transversal optical sensor the transversal position or at least one item of information on the transversal position of the object is generated, characterized in that the transversal optical sensor and the longitudinal optical sensor are independent optical sensors.