Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

destPointRhumb

Destination along a rhumb line


Description

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

Usage

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

Value

Coordinates (longitude/latitude) of a point

Author(s)

Chris Veness; ported to R by Robert Hijmans

References

See Also

Examples

destPointRhumb(c(0,0), 30, 100000, r = 6378137)

geosphere

Spherical Trigonometry

v1.5-10
GPL (>= 3)
Authors
Robert J. Hijmans [cre, aut], Ed Williams [ctb], Chris Vennes [ctb]
Initial release
2019-05-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.