Skip to content

Api > Quaternion > Operator ( Quaternion * Quaternion )


Operator ( Quaternion * Quaternion )⚓︎

Combines rotations lhs and rhs.

LHS Type Symbol RHS Type Result Type
Quaternion * Quaternion Quaternion

Usage⚓︎

---@type Quaternion
local lhs;

---@type Quaternion
local rhs;

local result = lhs * rhs; -- result is Quaternion

Extra Detail⚓︎

Rotating by the product lhs * rhs is the same as applying the two rotations in sequence: lhs first and then rhs, relative to the reference frame resulting from lhs rotation. Note that this means rotations are not commutative, so lhs * rhs does not give the same rotation as rhs * lhs.