Calculate Azimuth
When the azimuth is calculated from one point to another using the toolbox, the result
depends upon whether you want a great circle or a rhumb line azimuth. For great circles, the
result is the azimuth at the starting point of the connecting great circle path. In general,
the azimuth along a great circle is not constant. For rhumb lines, the resulting azimuth is
constant along the entire path.
Azimuths, or bearings, are returned in the same angular units as the input latitudes and
longitudes. The default path type is the shorter great circle, and the default angular units
are degrees. In the example, the great circle azimuth from the first point to the second
is
azgc = azimuth(-15,0,60,150)
azgc =
19.0391
For the rhumb line, the constant azimuth is
azrh = azimuth('rh',-15,0,60,150)
azrh =
58.8595
One feature of rhumb lines is that the inverse azimuth, from the second point to the
first, is the complement of the forward azimuth and can be calculated by simply adding 180°
to the forward value:
inverserh = azimuth('rh',60,150,-15,0)
inverserh =
238.8595
difference = inverserh-azrh
difference =
180
This is not true, in general, of great circles:
inversegc = azimuth('gc',60,150,-15,0)
inversegc =
320.9353
difference = inversegc-azgc
difference =
301.8962
The azimuths associated with cardinal and intercardinal compass directions are the
following:
North0° or 360°
Northeast45°
East90°
Southeast135°
South180°
Southwest225°
West270°
Northwest315°