Quat:mul
Multiplies this quaternion by another value. If the value is a quaternion, the rotations in the two quaternions are applied sequentially and the result is stored in the first quaternion. If the value is a vector, then the vector is rotated by the quaternion.
q = Quat:mul(r)
Arguments
Name | Type | Description |
r | quat | A quaternion to combine with the original.
|
Returns
Name | Type | Description |
q | quat | The original quaternion.
|
q = Quat:mul(v)
Arguments
Name | Type | Description |
v | vec3 | A vector to rotate.
|
Returns
Name | Type | Description |
q | quat | The original quaternion.
|
See also