A first sensor and a second sensor provided on both ends of a moving
portion connected to a fixed portion via an elastic body detect
displacements of the moving portion that is in an oscillating movement.
An angle calculating unit calculates a displacement angle of the moving
portion based on the displacements detected by the first sensor and the
second sensor and a distance between the first sensor and the second
sensor.