I have a similar question to this post, except that I don't know the rotation angle. I just need to put the upper left corner of the rotated rectangle to (Xmin, Ymin). How can I calculate the rotated position B from the original position A?

I have a similar question to this post, except that I don't know the rotation angle. I just need to put the upper left corner of the rotated rectangle to (Xmin, Ymin). How can I calculate the rotated position B from the original position A?
