py3dframe.Frame.set_global_rotation#

Frame.set_global_rotation(rotation: Rotation, *, convention: int | None = None) None[source]#

Set the rotation between the global frame and the frame in the given convention.

Parameters:
  • rotation (scipy.spatial.transform.Rotation) – The rotation between the global frame and the frame in the given convention.

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