Raising the Roof

Just simple trigonometry.