py3dframe.Frame.quaternion#
- property Frame.quaternion: ndarray#
The quaternion representation of the rotation between the parent frame and this frame in the convention of the frame.
The quaternion is in the scalar first convention [w, x, y, z].
Note
This property is settable.
See also
attribute
parentto get or set the parent frame.attribute
conventionto get or set the convention of the frame.method
get_quaternion()to get the quaternion in a specific convention and order.method
set_quaternion()to set the quaternion in a specific convention and order.
- Parameters:
quaternion (numpy.ndarray) – The quaternion between the parent frame and this frame in the convention of the frame as an array-like with 4 elements. The quaternion is in the scalar first convention [w, x, y, z].
- Returns:
The quaternion between the parent frame and this frame in the convention of the frame with shape (4,). The quaternion is in the scalar first convention [w, x, y, z].
- Return type: