Description Usage Arguments Details Value Examples
Should not be called directly by users.
Copied and adapted from function "dist2gc" in geosphere package by Robert Hijmans.
dist2gcs
calculates signed distance between point and a line.
1 | dist2gcS(p1, p2, p3, r = 6378137)
|
p1 |
Start of great circle path. longitude/latitude of point(s). |
p2 |
End of great circle path. As above. |
p3 |
Point away from the great cricle path. As for p2. |
r |
radius of the earth; default = 6378137. |
Just took out "abs" from original code in geosphere::dist2gc
.
So returns signed values to indicate left or right, as used by makelado
.
Signed distance between point and line i.e. cross track distance.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.