pytransform3d.rotations
.matrix_from_quaternion#
- pytransform3d.rotations.matrix_from_quaternion(q)[source]#
Compute rotation matrix from quaternion.
This typically results in an active rotation matrix.
- Parameters:
- qarray-like, shape (4,)
Unit quaternion to represent rotation: (w, x, y, z)
- Returns:
- Rarray-like, shape (3, 3)
Rotation matrix
Examples using pytransform3d.rotations.matrix_from_quaternion
#
Quaternion Integration
Interpolate Between Quaternion Orientations
Interpolate Between Quaternion Orientations
Quaternion Integration
Compare Various Definitions of Rotations
Compare Various Definitions of Rotations