setFromUnitVectors

Sets this quaternion to the rotation required to rotate the direction vector vFrom to the direction vector vTo. Both are assumed normalized.

Return

A reference to this quaternion.

Parameters

vFrom

The first (normalized) direction vector.

vTo

The second (normalized) direction vector.