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
• v0: Vector3
First unit-length vector (from)
• v1: Vector3
Second unit-length vector (to)
Returns
Quaternion
Rotation quaternion