A phase difference sensor is arranged toward a target object such that the
sensor can rotate at least 180.degree. on its sensor optical axis. As the
phase difference sensor rotates, the angle of a sensor viewing field is
changed, and the distance to the target object is correctly computed
using results measured before and after the change in the angle.