magpack.rotations.rot#
- rot(theta, degrees=True)#
Generates the 2x2 rotation matrix for an in-plane rotation.
- Parameters:
- thetafloat
Rotation angle in degrees.
- degreesbool
True for degrees, False for radians.
- Returns:
- np.ndarray
Rotation matrix with shape(2, 2).