e3x.so3.rotations

Functions for generating rotation matrices.

Functions

alignment_rotation(u, v)

Rotation matrix that aligns \(\vec{u}\) with \(\vec{v}\).

euler_angles_from_rotation(rot)

Extracts Euler angles from a rotation matrix.

random_rotation(key[, perturbation, num])

Samples a random \(3\times3\) rotation matrix.

rotation(axis, angle)

\(3\times3\) rotation matrix specified by an axis and an angle.

rotation_euler(a, b, c)

\(3\times3\) rotation matrix specified by Euler angles.

wigner_d(rot, max_degree[, cartesian_order])

Wigner-D matrix corresponding to a given \(3\times3\) rotation matrix.