single_rotmat

Import in python using from mcutils.utils.spherical import single_rotmat

mcutils.utils.spherical.single_rotmat(theta, axis)[source]

Rotate around the axis with theta radians

Parameters
  • theta – Angle of the rotations

  • axis – index of the axis (0, 1, or 2 for x, y, or z)

Returns

(3, 3) array with the rotation matrix