View source: R/linear-spherical-spline.R
spherical_dist | R Documentation |
This function calculates the spherical distance between two vectors.
spherical_dist(x, y)
x |
A numeric vector. |
y |
A numeric vector. |
The distance between vectors x and y.
x <- c(1, 0, 0)
y <- c(0, 1, 0)
spherical_dist(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.