Detecting clock wise and anti clock wise rotation

hey troops!

nube’s first post.

can you tell me if it is possible to detect if an object is rotating anti clockwise or not?

at present i get x,y co-ords and use the code below to rotate it which is fine. now i could write an if statement to check if rotation is negative or positive but because rotation can be negative and positive when rotating clockwise and anti clockwise this wouldnt work.

any ideas?


 theAngle = Math.atan2(diffy , diffx);
 
 this._rotation = theAngle*360/(2*Math.PI);

 updateAfterEvent();

cheers in advance