magpack.rotations.rotx#
- rotx(theta, degrees=True)#
Generates the 3x3 rotation matrix for a rotation about the x-axis.
- Parameters:
- thetafloat
Rotation angle in degrees.
- degreesbool
True for degrees, False for radians.
- Returns:
- np.ndarray
Rotation matrix with shape(3, 3).