How could I make a wheel movement sistem like this?

So I wan´t to make movement system similar to this:
So the player will be able to rotate a ui element and that will rotate a model, how could I do that?
Do I need some super complex math?