py3dframe.Frame.set_rotation_vector#

Frame.set_rotation_vector(rotation_vector: ndarray, *, convention: int | None = None, degrees: bool = False) None[source]#

Set the rotation vector between the parent frame and the frame in the given convention.

Parameters:
  • rotation_vector (numpy.ndarray) – The rotation vector between the parent frame and the frame in the given convention with shape (3,).

  • 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.

  • degrees (bool, optional) – If True, the rotation vector is in degrees. Default is False.