How to model a scanning mirror