Description Usage Arguments Value Author(s) References See Also Examples
Compute the distance of a point to a great-circle path (also referred to as the cross track distance or cross track error). The great circle is defined by p1
and p2
, while p3
is the point away from the path.
1 |
p1 |
Start of great circle path. longitude/latitude of point(s). Can be a vector of two numbers, a matrix of 2 columns (first one is longitude, second is latitude) or a SpatialPoints* object |
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 |
sign |
logical. If |
A distance in units of r
(default is meters)
If sign=TRUE
, the sign indicates which side of the path p3 is on. Positive means right of the course from p1 to p2, negative means left.
Ed Williams and Robert Hijmans
http://www.movable-type.co.uk/scripts/latlong.html
http://www.edwilliams.org/ftp/avsig/avform.txt
1 |
Loading required package: sp
[1] 1099896
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.