findSphericalDistance: Find the spherical distance from a given point to a set of...

Description Usage Arguments Value Examples

View source: R/TrajectoryGeometry.R

Description

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.

Usage

1
findSphericalDistance(center, points, normalize = FALSE)

Arguments

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.

Value

This returns a vector of n spherical distances in radians.

Examples

1
2

AnnaLaddach/TrajectoryGeometry documentation built on Jan. 28, 2021, 10:41 a.m.