Learn R Programming

spheresmooth (version 0.1.3)

geodesic: Compute the value of the geodesic curve connecting two points on the unit sphere for a given set of time points t

Description

This function computes the value of the geodesic curve connecting two points p and q on the unit sphere at specified time points.

Usage

geodesic(t, p, q, a, b)

Value

Numeric matrix representing points along the geodesic path at specified time points.

Arguments

t

Numeric vector representing time points for the geodesic path.

p

Numeric vector representing the starting point on the sphere.

q

Numeric vector representing the ending point on the sphere.

a

Start time parameter.

b

End time parameter.

Examples

Run this code
geodesic(c(0.25, 0.5, 0.75), c(1,0,0), c(0,1,0), 0, 1)

Run the code above in your browser using DataLab