Rotate object respect to bounding box edge

I want to rotate object from its one of the bounding box edge.
As you can see in image,
I want to rotate object with reference to axis passing from one point of rectangle.

Hi!
Are there two objects on the pic? Or do you want to show rotation of a single object?

I want to show rotation of single object