Is the rotation sensor an analog sensor?

It’s known that the optical shaft encoder is a digital sensor, while the potentiometer is an analog. What about the rotation sensor?