vector.rotate

Edit

Rotates the vector by a quaternion, returning a new rotated vector.

v = vector.rotate(v, q)

Arguments

NameTypeDescription
vvector The vector to rotate.
qquaternion The rotation.

Returns

NameTypeDescription
vnumber The rotated vector.

See also