geosphere (version 1.5-1)

greatCircleBearing: Great circle

Description

Get points on a great circle as defined by a point and an initial bearing

Usage

greatCircleBearing(p, brng, n=360)

Arguments

p
longitude/latitude of a single point. Can be a vector of two numbers, a matrix of 2 columns (first one is longitude, second is latitude) or a SpatialPoints* object
brng
bearing
n
The requested number of points on the great circle

Value

  • A matrix of points, or a list of matrices (e.g., if multiple bearings are supplied)

References

http://williams.best.vwh.net/avform.htm#Int

Examples

Run this code
greatCircleBearing(c(5,52), 45, n=12)

Run the code above in your browser using DataCamp Workspace