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

View source: R/TrajectoryGeometry.R

findSphericalDistanceR Documentation

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

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

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

distances = findSphericalDistance(straight_path_center,
    straight_path_projection)

AnnaLaddach/TrajectoryGeometry documentation built on Feb. 23, 2024, 2:24 p.m.