An optical system for three-dimensional motion measurement