Multi-touch gear for navigation

Yes exactly, that is my problem, in fact whenever the “tripod” is not recognized for an instant, the first touch point may change, and so would the angle.

Your idea could work, I’ll test it thanks, but maybe I would still occur into the other issues?

(Hope I make this explanation clear)
Assuming that the case is when the touches get untouched for an instant and the first touch changes, the position of the tripod on the screen, and the middle point pointing to the up vertice, would be the same as the moment before.
How can I calculate a delta of angle? So that at whatever angle I put the tripod on the screen, I calculate the midpoint and the relative angle, but I don’t want to use that relative angle but the amount of angle resulted by the rotation of the tripod itself from moment 0 to moment 1 (maybe I didn’t explain it, but the tripod has to be used as a gear of increment to navigate in the infographics).

Then other problem, in my code I have confined angles range between 0-360. How can I calculate the amount of rotated angle if I come across the case when the angle gets from 360 to 0 and start the rotation again?

This is my main issue, because I use the angle as a reference to change stuff, like the year of which the infographics are displayed. And is bad that whenever the touches change order, I skip from year 2000, to 2018…

As a next step, but this is really secondary, what if the user take off the tripod and put it on again, at a different angle? As for the experience I would like the year to stay the same. Is there a way to keep trace of the “amount of angle increment” and sum it the new amount from the new starting angle?

Thank you very much for your help, I hope to have explained my self well!
Have a nice day!