If I have a rotation that goes from 0º to 90º and I want to base the rotation on the touch of my finger, how can I calculate this?
My current situation is that if I touch at the end of the object (height equals 150 units) I would like a degree of 0º, if I touch at the very beginning (0) I would like 90º. How can put this into an equation?
x=75it should give me45º(for example). – Rui Peres May 09 '14 at 19:31x=150theny=90where the goal is to be0. The same thing withx=0theny=0, where goal would be90º. – Rui Peres May 09 '14 at 19:36