Accurately calculate the curvature on the ball Earth. Uses a cosine function, works for all distances in both kilometers and miles. Open source on Github.
Earth Curvature Calculation I have written about how to compute the curvature of the Earth over a given distance in anotherpostusing Equation 1, which relates the deviation from horizontal to the distance from the measurement origin. Eq. 1 ...