linearly v0.32.0 • Docs
linearly v0.32.0 / quat / rotationTo
Function: rotationTo()
rotationTo(
a
,b
):quat
Sets a quaternion to represent the shortest rotation from one vector to another.
Both vectors are assumed to be unit length.
Parameters
• a: vec3
the initial vector
• b: vec3
the destination vector