fractaldna.utils.rotations.quaternion_about_axis¶
- fractaldna.utils.rotations.quaternion_about_axis(angle, axis)¶
Return quaternion for rotation about axis.
>>> q = quaternion_about_axis(0.123, [1, 0, 0]) >>> np.allclose(q, [0.99810947, 0.06146124, 0, 0]) True