destPointRhumb function

Destination along a rhumb line

Destination along a rhumb line

Calculate the destination point when travelling along a 'rhumb line' (loxodrome), given a start point, direction, and distance. 1.1

destPointRhumb(p, b, d, r = 6378137)

Arguments

  • p: longitude/latitude of point(s). Can be a vector of two numbers, a matrix of 2 columns (first one is longitude, second is latitude) or a SpatialPoints* object
  • b: bearing (direction) in degrees
  • d: distance; in the same unit as r (default is meters)
  • r: radius of the earth; default = 6378137 m

Returns

Coordinates (longitude/latitude) of a point

References

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

https://www.movable-type.co.uk/scripts/latlong.html

https://en.wikipedia.org/wiki/Rhumb_line

Author(s)

Chris Veness; ported to R by Robert Hijmans

See Also

destPoint

Examples

destPointRhumb(c(0,0), 30, 100000, r = 6378137)
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2024-10-04

Useful links