rotationBetween
rotationBetween(
v0
,v1
):Quaternion
Minimal 3D rotation between two normalized vectors
Gives the rotation that transforms vector v0 to v1. which axis is the cross-product of these vectors.
Parameters
Section titled “Parameters”Vector3
First unit-length vector (from)
Vector3
Second unit-length vector (to)
Returns
Section titled “Returns”Quaternion
Rotation quaternion