The same equation can also be derived using the Pythagorean theorem. At the horizon, the line of sight is a tangent to the Earth and is also perpendicular to Earth's radius. This sets up a right triangle, with the sum of the radius and the height as the hypotenuse.