View source: R/greatCircleBearing.R
greatCircleBearing | R Documentation |
Get points on a great circle as defined by a point and an initial bearing
greatCircleBearing(p, brng, n=360)
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 |
A matrix of points, or a list of matrices (e.g., if multiple bearings are supplied)
Robert Hijmans based on formulae by Ed Williams
https://www.edwilliams.org/avform147.htm#Int
greatCircleBearing(c(5,52), 45, n=12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.