spherical_dist: Calculate spherical distance between two vectors

View source: R/linear-spherical-spline.R

spherical_distR Documentation

Calculate spherical distance between two vectors

Description

This function calculates the spherical distance between two vectors.

Usage

spherical_dist(x, y)

Arguments

x

A numeric vector.

y

A numeric vector.

Value

The distance between vectors x and y.

Examples

x <- c(1, 0, 0)
y <- c(0, 1, 0)
spherical_dist(x, y)

spheresmooth documentation built on May 29, 2024, 3:15 a.m.