Learn R Programming

geosphere (version 1.5-20)

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)

Value

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

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

Author

Robert Hijmans based on formulae by Ed Williams

References

https://www.edwilliams.org/avform147.htm#Int

Examples

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

Run the code above in your browser using DataLab