R: Great circle

greatCircleBearing {geosphere} | R Documentation

## 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

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

### Examples

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

[Package geosphere version 1.5-5 Index]