To derive the law of haversines one starts with the spherical law of cosines. There are several related functions most notably the coversine and haversineThe latter half a versine is of particular importance in the haversine formula of navigation. The Haversine Formula For two points on a sphere of radius R with latitudes f1 and f2 latitude separation Df f1 f2 and longitude separation Dl where angles are.
Formula to Find Bearing or Heading angle between two points.
To derive law of Haversine one needs to start the calculation with spherical law of cosine ie cos a cos b cos c sin b sin c cos A One can derive Haversine. Haversine dr haversine F 2 F 1 cosF 1cosF 2haversinel 2 -l 1 Where d is the distance between two points with longitude and latitude lF and r is the radius of the earth. Formula to Find Bearing or Heading angle between two points. This means to reach a particular destination you need to adjust your heading.