Fields
w component of quaternion (scalar) Can be initialized with either quaternion components or Euler angles
Constructor
Signature
- Using quaternion components (x, y, z, w)
- Using Euler angles (roll, pitch, yaw) where the first three arguments are interpreted as roll, pitch, and yaw respectively
- Using a rotation matrix (3x3 numpy array or list)
- Using a quaternion array (4-element list or numpy array)
Methods
conjugate()
Signature
from_dict()
Signature
normalize()
Signature
to_axis_angle()
Signature
to_dict()
Signature
to_euler()
Signature
Order of rotations. Defaults to “xyz”. Supported orders include “xyz”, “zyx”, “yzx”, etc.
to_matrix()
Signature