Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

Author(s)

Robert Hijmans based on formulae by Ed Williams

References

Examples

greatCircleBearing(c(5,52), 45, n=12)

geosphere

Spherical Trigonometry

v1.5-10
GPL (>= 3)
Authors
Robert J. Hijmans [cre, aut], Ed Williams [ctb], Chris Vennes [ctb]
Initial release
2019-05-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.