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! :)
if you are trying to do it in pure way, by your self it think this answer would be great for you https://math.stackexchange.com/questions/270194/how-to-find-the-vertices-angle-after-rotation
if you want to use a package for this, then I do recommend flatten-js , geometric ,Ecluid.ts