Import in python using from mcutils.utils.spherical import single_rotmat
mcutils.utils.spherical.
single_rotmat
Rotate around the axis with theta radians
theta – Angle of the rotations
axis – index of the axis (0, 1, or 2 for x, y, or z)
(3, 3) array with the rotation matrix