Empirical function to compute the distance to the horizon from a given altitude. The earth is assumed to be smooth, i.e. mountains and other obstacles are ignored.
Usage
horizon(h, r=6378137)
Value
Distance in units of h (default is meters)
Arguments
h
altitude, numeric >= 0. Should have the same unit as r