magpack.rotations#

Functions

eul2rot

Returns a stack of rotation matrices following the sequence and the corresponding angles.

lamni_rot

Generates a stack of rotation matrices describing laminography.

rot

Generates the 2x2 rotation matrix for an in-plane rotation.

rotate_scalar_field

Rotates a scalar field according to the provided rotation matrix.

rotate_vector_field

Rotates a vector field according to the provided rotation matrix.

rotx

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

roty

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

rotz

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

tomo_rot

Generates a stack of rotation matrices describing tomography with tilting.

transform_field

Rotates each element in the vector field according to the provided rotation matrix.