Learn R Programming

geosphere (version 1.1.2)

rhumbIntersect: Intersecting radials

Description

Intersection between two rhumb lines defined by their point of origin and true bearing

Usage

rhumbIntersect(p1, brng1, p2, brng2)

Arguments

p1
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
brng1
True bearing from p1
p2
As above. Should have same length as p1, or a single point (or vice versa when p1 is a single point
brng2
True bearing from p2

Value

  • a point

References

http://williams.best.vwh.net/avform.htm#Rhumb http://en.wikipedia.org/wiki/Rhumb_line

Examples

Run this code
rhumbIntersect(c(10,0), 10, c(-10,0), 10)

Run the code above in your browser using DataLab