Hi, im trying to keep track of an images coordinates while its moved around the screen (using keyboard). Ive done this easily for UP, DOWN, LEFT and RIGHT movements but the problem is when the image is rotated at an angle (e.g. 45 degrees). How can i work out the coordinates of the image (top left corner) after it has been rotated?
this is what im using to rotate the image:
xform.rotate(Math.toRadians(angle), xRot , yRot);
xRot and yRot are ints that represent the centre of the image. This is the point im rotating about.
Any help is appreciated, thanks.