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-inverse
q-conjugate
q-length
q-length2
length without call sqrtq-scale
takes a quaternion and a scalarv+
add multiple vectorsv-
&v+
add 2 vectors&v-
v-scale
takes a vector and a scalar&c+
add 2 complex numbers&c-
&c*
c-length
c-length2
c-conjutate