magpack.rotations.roty#

roty(theta, degrees=True)#

Generates the 3x3 rotation matrix for a rotation about the y-axis.

Parameters:
thetafloat

Rotation angle in degrees.

degreesbool

True for degrees, False for radians.

Returns:
np.ndarray

Rotation matrix with shape(3, 3).