Quaternion operations on caller-owned arrays, [x, y, z, w] at an offset,
for sweeps posed every frame without allocating.
Each operation reads its inputs fully before writing, so an output may
share storage with an input. They follow Quaternion's conventions: the
Hamilton product a b applies b first, a basis maps +X, +Y, +Z to
its three columns, and slerp takes the shorter arc and switches to
normalized linear interpolation above the shared near-parallel threshold.
Quaternion operations on caller-owned arrays,
[x, y, z, w]at an offset, for sweeps posed every frame without allocating.Each operation reads its inputs fully before writing, so an output may share storage with an input. They follow
Quaternion's conventions: the Hamilton producta bappliesbfirst, a basis maps+X,+Y,+Zto its three columns, and slerp takes the shorter arc and switches to normalized linear interpolation above the shared near-parallel threshold.