py3dframe.Frame.set_quaternion#
- Frame.set_quaternion(quaternion: ndarray, *, convention: int | None = None, scalar_first: bool = True) None [source]#
Set the quaternion between the parent frame and the frame in the given convention.
- Parameters:
quaternion (numpy.ndarray) – The quaternion between the parent frame and the frame in the given convention with shape (4,).
convention (Optional[int], optional) – The convention to express the transformation. It can be an integer between 0 and 7 or a string corresponding to the conventions. Default is the convention of the frame.
scalar_first (bool, optional) – If True, the quaternion is in the scalar first convention. Default is True.