Skip to main content

Module great_circle

Module great_circle 

Source
Expand description

Great circle sailing – the shortest path between two positions.

This is the right sailing for “how far is it” and for legs long enough that the saving matters. It is the wrong one for steering: the bearing changes continuously along the track, which is why crate::rhumb exists alongside it.

Functions§

destination
The position reached by sailing distance_nm from from along the great circle that leaves on bearing_deg.
distance_nm
Distance along the great circle between two positions, in nautical miles.
final_bearing_deg
The bearing the great circle arrives at to on, in degrees true.
initial_bearing_deg
The bearing to leave from on to reach to by the great circle, in degrees true.