A Python library for performing quaternion operations using NumPy arrays. Provides functions for quaternion creation, normalization, rotation, interpolation, and conversion between quaternions and other rotation representations (e.g., rotation matrices, axis-angle). Current version: 1.3.2, released 2023-04-03. Release cadence is irregular.
pip install rowanVerified import paths — ran on the pinned version, not inferred.
Create a quaternion from axis-angle, rotate a vector, and convert to rotation matrix.
Always convert lists to np.array before passing to rowan functions.
When interfacing with other libraries, convert conventions explicitly: for rowan use [w, x, y, z].
Normalize the axis vector using `axis / np.linalg.norm(axis)` before passing.
Upgrade to latest rowan: `pip install --upgrade rowan` or use the correct old name: `rowan.from_axisangle`.
Ensure array has homogeneous numeric dtype, e.g., `np.array(..., dtype=np.float64)`.