i want to rotate an image at the same position(around it's own center) by an angel but i don't know the formula for calculating the new x and new y needed for rotation.
let's say i draw an image at x 50 and y 90 and i want to rotate it by 20 degrees at the same position how i can calculate the new x and new y needed for rotation?
i just want the formula and if possible the code as well.
thx and sorry for my bad english.
let's say i draw an image at x 50 and y 90 and i want to rotate it by 20 degrees at the same position how i can calculate the new x and new y needed for rotation?
i just want the formula and if possible the code as well.
thx and sorry for my bad english.