Quaternions
Based on https://threejs.org/docs/#api/en/math/Quaternion
w is the factor:
[] x y z w
Under the scope quatrefoil.math:
q+add multiple quaternionsq-q*&q*add 2 quaternions&q+&q-q-inverseq-conjugateq-lengthq-length2length without call sqrtq-scaletakes a quaternion and a scalarv+add multiple vectorsv-&v+add 2 vectors&v-v-scaletakes a vector and a scalar&c+add 2 complex numbers&c-&c*c-lengthc-length2c-conjutate