C Move Rectangle Inside Rectangle When Rotating Outer Rectangle

C Move Rectangle Inside Rectangle When Rotating Outer Rectangle