Skip to main content

geometric_slerp

Function geometric_slerp 

Source
pub fn geometric_slerp(
    start: &[f64],
    end: &[f64],
    t: &[f64],
) -> Result<Vec<Vec<f64>>, ErrorsJSL>
Expand description

Points along the great circle from start to end on the unit sphere in any dimension, at the fractions t of the way (SciPy’s geometric_slerp): (sin((1 − t)ω) start + sin(tω) end) / sin ω, ω the angle between them. Both must be unit vectors; antipodal points have no unique great circle and are an error, and equal points give that point.