A python package to describe 3D rotations using unit quaternions, rotation matrices, Euler angles.
from rotations import UnitQuaternion, RotationMatrix, EulerAngles, AngleType
# Specify unit quaternions
q1 = UnitQuaternion.from_(1.0, 0.0, 0.0, 0.0)
q2 = UnitQuaternion.from_euler_angles(roll=30.0, pitch=10.0, yaw=0, angletype=AngleType.DEGREES)
# Use it for quaternion rotations
rotated_vector = q2 @ [1.0, 0.0, 0.0]
git clone [email protected]:peter-seres/rotations.git
cd rotations
python -m venv venv
venv\scripts\Activate
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install -e .
- Automate tests with
pytest
- Automate linting using
black
tox
: automate github actions for multiple environments