dist_gc_slc {graph4lg} | R Documentation |
Calculate the Great-Circle distance between two points using the Spherical Law of Cosines (slc)
Description
The function calculates the Great-Circle distance between two points specified by radian latitude/longitude using the Spherical Law of Cosines (slc)
Usage
dist_gc_slc(long1, lat1, long2, lat2)
Arguments
long1 |
Point 1 longitude in radians |
lat1 |
Point 1 latitude in radians |
long2 |
Point 2 longitude in radians |
lat2 |
Point 2 latitude in radians |
Value
The distance between points 1 and 2 in meters
Author(s)
P. Savary
Examples
dist_gc_slc(long1 = -73.99420, lat1 = 40.75170,
long2 = -87.63940, lat2 = 41.87440)
[Package graph4lg version 1.8.0 Index]