I am having trouble with finding the X and Y-coordinates of the center of a rotated rectangle through mathematical calculations.
What I have is the width 'A' and height 'B' of a rectangle, as well as its rotation 'R' in degrees.
What would be the formula to calculate those points?
Here is a sketch to further explain what i am trying to do:
Any help is greatly appreciated! :)