single_rotmat

Import in python using from mcot.core.spherical import single_rotmat

mcot.core.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