Learn R Programming

VTrack (version 1.11)

ComputeAzimuth: Compute the Azimuth Between Two Coordinates

Description

This function computes the Azimuth from two geographical coordinates. These locations must be in decimal degrees.

Usage

ComputeAzimuth(lat1, lat2, lon1, lon2)

Arguments

lat1
the latitude of the first coordinate
lat2
the latitude of the second coordinate
lon1
the longitude of the first coordinate
lon2
the longitude of the second coordinate

Details

Coordinates are given in decimal degrees (WGS 84)