Learn R Programming

geosphere (version 1.0.0)

destPointRhumb: Destination along a rhumb line

Description

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

Usage

destPointRhumb(p, brng, dist, r = 6378137)

Arguments

p
longitude/latitude of point(s), in degrees; 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 in degrees
dist
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

References

http://williams.best.vwh.net/avform.htm#Rhumb http://www.movable-type.co.uk/scripts/latlong.html http://en.wikipedia.org/wiki/Rhumb_line

See Also

destPoint

Examples

Run this code
destPointRhumb(c(0,0), 30, 100000, r = 6378137)

Run the code above in your browser using DataLab