{"library":"rowan","title":"rowan","description":"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.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install rowan"],"cli":null},"imports":["import rowan"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import rowan\nimport numpy as np\n\n# Create a quaternion from axis-angle (radians)\naxis = np.array([0, 0, 1])\nangle = np.pi / 2\nq = rowan.from_axis_angle(axis, angle)\n\n# Rotate a vector\nv = np.array([1, 0, 0])\nv_rot = rowan.rotate(q, v)\nprint(v_rot)  # [0, 1, 0]\n\n# Convert to rotation matrix\nR = rowan.to_matrix(q)\nprint(R)","lang":"python","description":"Create a quaternion from axis-angle, rotate a vector, and convert to rotation matrix.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}