tan θ = opposite / adjacent = (horizontal displacement of top) / height
Reply on news.ycombinator.com