View source: R/TrajectoryGeometry.R
findSphericalDistance | R Documentation |
This function takes a point (typically a center) and a set of points and finds the spherical distance between the given point and each of the others. If requested, it will first normalize all of them.
findSphericalDistance(center, points, normalize = FALSE)
center |
- The proposed point from which distance to the others should be measured. This is a numerical vector of length d. |
points |
- The set of target points for which spherical distance to the center should be calculated. This is in the form of a n x d matrix. |
normalize |
- If this is set to TRUE, the function will start by normalizing the input points. |
This returns a vector of n spherical distances in radians.
distances = findSphericalDistance(straight_path_center,
straight_path_projection)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.