Define an origin and a point of rotation. Move each constituent of the rectangle through the appropriate angle using trigonometry. Plot the result.