sl.p2p | R Documentation |
Compute a point on a great-circle line moving a certain fraction from a start point towards an end point.
sl.p2p(lon1, lat1, lon2, lat2, frac)
lon1 |
a scalar giving the longitude of the start point. |
lat1 |
a scalar giving the latitude of the start point. |
lon2 |
a scalar giving the longitude of the end point. |
lat2 |
a scalar giving the latitude of the start point. |
frac |
a scalar giving the fraction how much of the distance from the start point to the end point shall be covered. Values below |
lon |
a scalar giving the longitude of the resulting point. |
lat |
a scalar giving the latitude of the resulting point. |
Helge Goessling
sl.fillequidist
sl.p2p(lon1=0,lat1=0,lon2=90,lat2=40,frac=0.5)
## Should return:
## $lon
## [1] 37.45372
##
## $lat
## [1] 27.03402
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.