Maths isn't my strong point and i've been stuck here for hours trying to figure out how do to this (it's probably gona be very easy to do now as well) but it's driving me crazy so i'm going to ask for a little help..
I need to calculate what way the user is rotating an object... I have 3 coordinates.. 1 is the center of the object and the other 2 are the previous and the new touch locations...
I am already using the three coordinates to calculate the angle of change since the last update and that I can do ok..
However I am now at the point where I need to figure out if the user is rotating the object clockwise or anticlockwise... This is what I thought would be easy but i've been stuck here for hours now (maybe I just need a break?).
At the moment I am creating two triangles from the center to both the previous and new coordinate then using the hypotenuse from each one and then joining the previous coordinate with the new one to create another triangle where I can then use the cosine and sine rule to calculate the angle between the previous and new coordinate in relation to the center coordinate however as I said I'm useless at maths and after sitting here so long, all i can think of is ridiculously long (truth table approach but this could have 30 different equations)
Is there something simple i'm missing?
Let me know if you need more information.
Thanks
Liam