Returns the spherical linear interpolation of points between two vectors
Usage
vslerp(x, y, t, na.rm = TRUE)
Arguments
- x, y
objects of class "Vec3"
, "Line"
, or "Plane"
.
- t
numeric. interpolation factor (t = [0, 1]
).
- na.rm
logical. Whether NA
values should be removed before the computation proceeds.
Details
A Slerp path is the spherical geometry equivalent of a path along a line
segment in the plane; a great circle is a spherical geodesic.
Note
For non-unit vectors the interpolation is not uniform.