Skip to main content

Rotation

GitHub source

Rotation

evo.objects.typed.types.Rotation

A clockwise intrinsic ZXZ Euler rotation in degrees.

Dip azimuth [0, 360], dip [0, 180], and pitch [0, 360] rotate about successive local Z, X, and Z axes, respectively. For column vectors, the rotation matrix is Rz(dip azimuth) @ Rx(dip) @ Rz(pitch).

as_rotation_matrix​

as_rotation_matrix() -> np.ndarray

Convert the rotation to a rotation matrix.

The rotation matrix is n the pre-multiplication convention, meaning that to rotate a vector v, you compute v_rotated = R @ v.

Was this page helpful?