View source: R/utils-spherical.R
arcdistmat | R Documentation |
This function calculates the shortest arc distance matrix between two sets of points.
arcdistmat(
points1,
points2 = NULL,
origin = c(0, 0, 0),
output = "distance",
radius = authRadius
)
points1 |
( |
points2 |
( |
origin |
( |
output |
( |
radius |
( |
This function will create all possible shortest arc distances between points in the two sets,
but not between the points within the sets. The function is useful for great circle distance calculations.
For a symmetrical distance matrix leave the points2
argument empty.
A single numeric
value.
g <- trigrid(c(4))
res <- arcdistmat(g@vertices)
rand<-rpsphere(500)
res2 <- arcdistmat(g@vertices, rand)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.