gcLon function

Longitude on a Great Circle

Longitude on a Great Circle

Longitudes at which a great circle crosses a latitude (parallel) 1.1

gcLon(p1, p2, lat)

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
  • p2: as above
  • lat: a latitude

Returns

vector of two numbers (longitudes)

References

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

Author(s)

Robert Hijmans based on code by Ed Williams

See Also

gcLat, gcMaxLat

Examples

gcLon(c(5,52), c(-120,37), 40)
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2024-10-04

Useful links