Const
The vector v rotated by the unit quaternion q, q · v · q⁻¹.
v
q
q · v · q⁻¹
A non-unit q also scales and distorts the result, so normalize first when its length is not known to be one.
Unit rotation.
Vector to rotate.
A new rotated vector.
The vector
vrotated by the unit quaternionq,q · v · q⁻¹.A non-unit q also scales and distorts the result, so normalize first when its length is not known to be one.