This question is an exact duplicate of:
We have a rectangle that is rotating by its center from $0$ to $360$ degrees. This rectangle rotation starts in $0$ degrees when we know all four rectangle points. We also know the angle we want to rotate the rectangle.
What I need is a formula for these points when rectangle is rotated.