gcLat: Latitude on a Great Circle

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/gcLat.R

Description

Latitude at which a great circle crosses a longitude

Usage

1
gcLat(p1, p2, lon) 

Arguments

p1

Longitude/latitude of a single point, 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

p2

As above

lon

Longitude

Value

A numeric (latitude)

Author(s)

Robert Hijmans based on a formula by Ed Williams

References

http://www.edwilliams.org/avform.htm#Int

See Also

gcLon, gcMaxLat

Examples

1
gcLat(c(5,52), c(-120,37), lon=-120)

Example output

[1] 37

geosphere documentation built on May 2, 2019, 5:16 p.m.