helixmc.util.R_axis

helixmc.util.R_axis(theta, axis)

Return rotation matrices with rotational angle theta along an arbitary rotation axis.

Parameters:

theta : array-like

Rotation angles of the matrix in radians.

axis : ndarray, shape (N,3)

Rotational axis for the rotation being performed, align with first index (i.e. axis[3] is the rotational axis for angle theta[3]).

Returns:

rot_matrix : ndarray

Corresponding rotation martrices for each input angle, align with the first index.

See also

Rz
Return z-rotation matrices with rotational angle theta.
Ry
Return y-rotation matrices with rotational angle theta.
Rx
Return x-rotation matrices with rotational angle theta.