Corner Coordinates of Rotated Rectangle

I bet there’s an easy answer to this one:

How do I get the x and y position of a rotated rectangle’s (or an MC that contains a rectangular shape) top-right, bottom-right and bottom-left corners (not its bounding rectangle)?

Thnx!

E