acoustotreams.rotate

acoustotreams.rotate(phi, theta=0, psi=0, *, basis, where=True)[source]

Rotation matrix.

For the given Euler angles, apply a rotation for the given basis. For some basis sets, only rotations about the z-axis are permitted.

Parameters:
  • phi (float) – First Euler angle (rotation about z) (rad).

  • theta (float, optional) – Second Euler angle (rotation about y) (rad).

  • psi (float, optional) – Third Euler angle (rotation about z) (rad).

  • basis (ScalarBasisSet or tuple) – Basis set. If it is a tuple of two basis sets, the output and input modes are taken accordingly; otherwise, both sets of the modes are the same.

  • where (array_like, bool, optional) – Only evaluate specified parts of the rotation matrix. The input array must have a shape that matches the output shape.