An Ultra-Precision Absolute-Type Multi-Degree-of-Freedom Grating Encoder