greatCircleBearing function

Great circle

Great circle

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

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

Returns

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

References

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

Author(s)

Robert Hijmans based on formulae by Ed Williams

Examples

greatCircleBearing(c(5,52), 45, n=12)
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2024-10-04

Useful links