sl.lonlat.angle | R Documentation |
Compute the angle (great-circle distance) between two points on a sphere.
sl.lonlat.angle(lon1, lat1, lon2, lat2)
lon1 |
a scalar giving the longitude of the first point. |
lat1 |
a scalar giving the latitude of the first point. |
lon2 |
a scalar giving the longitude of the second point. |
lat2 |
a scalar giving the latitude of the second point. |
A scalar giving the angle (great-circle distance) between the two points in degrees.
Do not confuse with sl.angle
which provides the angle between two edges of a triangle.
Helge Goessling
sl.gc.dist
, sl.angle
.
sl.lonlat.angle(lon1=0,lat1=50,lon2=10,lat2=40)
## Should return:
## [1] 12.22407
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.