linearly v0.32.0Docs


linearly v0.32.0 / quat / calculateW

Function: calculateW()

calculateW(q): quat

Calculates the W component of a quat from the X, Y, and Z components. Assumes that quaternion is 1 unit in length. Any existing W component will be ignored.

Parameters

q: quat

Returns

quat

Defined in

src/quat.ts:246open in new window