Skip to content

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.

Vector3

First unit-length vector (from)

Vector3

Second unit-length vector (to)

Quaternion

Rotation quaternion