pub fn rotate_a_to_b_param<T>(
    a: Vector3<T>,
    b: Vector3<T>,
    t: T
) -> Quaternion<T> where
    T: Float
Expand description

Calculate a Versor to rotate from vector a to b.

The parameter t adjusts the amount of movement from a to b, so that When t = 1, it moves to position b completely.

If you enter a zero vector, it returns an identity quaternion.

If t = 1 at all times, it is less computationally expensive to use rotate_a_to_b(...) function.