rotate

Contents

rotate#

mrinufft.trajectories.tools.rotate(trajectory, nb_rotations, x_tilt=None, y_tilt=None, z_tilt=None)[source]#

Rotate 2D or 3D trajectories over the different axes.

Parameters:
  • trajectory (array_like) – Trajectory in 2D or 3D to rotate.

  • nb_rotations (int) – Number of rotations repeating the provided trajectory.

  • x_tilt (str, optional) – Tilt of the trajectory over the \(k_x\)-axis, by default None.

  • y_tilt (str, optional) – Tilt of the trajectory over the \(k_y\)-axis, by default None.

  • z_tilt (str, optional) – Tilt of the trajectory over the \(k_z\)-axis, by default None.

Returns:

Rotated trajectory.

Return type:

array_like