Azimuth¶
Calculates the great circle azimuth from a point 1 to a point 2.
The latitude and longitude of these two points can either be given independently
or as columns of the matrices point 1 and point 2 in the form [latitude longitude]
.
Forms¶
-
az = azimuth(lat1, lon1, lat2, lon2)
-
az = azimuth(lat1, lon1, lat2, lon2, units)
-
az = azimuth(pt1, pt2)
-
az = azimuth(pt1, pt2, units)
Note
The units for the input coordinates and output angles can be degrees (the default) or radians.