This function computes the value of the geodesic curve connecting two points p and q on the unit sphere 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.
Value
Numeric matrix representing points along the geodesic path at specified time points.
Examples
geodesic(c(0.25, 0.5, 0.75), c(1,0,0), c(0,1,0), 0, 1)
#> [,1] [,2] [,3]
#> [1,] 0.9238795 0.3826834 0
#> [2,] 0.7071068 0.7071068 0
#> [3,] 0.3826834 0.9238795 0