Let say I have these rectangles,
All the rectangles are in same shape. I know all the co-ordinates of all inner rectangles. I know the width and height of outer rectangle, which contain all inner rectangles. So, I know the center also. I need to rotate all these inner rectangle from center. After rotating I need the co-ordinates of all inner rectangles.