fractaldna.utils.rotations.quaternion_multiply¶
- fractaldna.utils.rotations.quaternion_multiply(quaternion1, quaternion0)¶
Return multiplication of two quaternions.
>>> q = quaternion_multiply([4, 1, -2, 3], [8, -5, 6, 7]) >>> numpy.allclose(q, [28, -44, -14, 48]) True