Skip to main content

Operator ( Quaternion * Quaternion )

Combines rotations lhs and rhs.

LHS TypeSymbolRHS TypeResult Type
Quaternion*QuaternionQuaternion

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.