Quat:mul
EditMultiplies 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 input vector is rotated by the quaternion and returned.
Arguments
Name | Type | Description |
r | Quat | A quaternion to combine with the original. |
Returns
Name | Type | Description |
self | Quat | The modified quaternion. |
Arguments
Name | Type | Description |
v3 | Vec3 | A vector to rotate. |
Returns
Name | Type | Description |
v3 | Vec3 | The rotated vector. |