Rotation.rotate

giant.rotations:

Rotation.rotate(other)[source]

Performs a left inplace rotation by other.

Using this method overwrites the data stored in self with self rotated by other. That is

\[\mathbf{q}_s = \mathbf{q}_o\otimes\mathbf{q}_s\]

where \(\mathbf{q}_s\) is the attitude quaternion representation of self, \(\mathbf{q}_o\) is the attitude quaternion representation of other, and \(\otimes\) indicates non-hamiltonian multiplication.

See the quaternion_multiplication() function for more information.

Parameters:

other (Sequence | ndarray | Rotation) – The data to rotate self with