giant.rotations.core.conversionsΒΆ

Core conversion routines for rotation representations

This module contains core routines for converting between different rotation representations. All routines are implemented purely on numpy arrays (or array like objects).

Functions

quaternion_to_rotvec

This function converts a rotation quaternion into a rotation vector of the form discussed in Rotation Representations.

quaternion_to_rotmat

This function converts an attitude quaternion into its equivalent rotation matrix of the form discussed in Rotation Representations.

quaternion_to_euler

This function converts a rotation quaternion to 3 euler angles to be applied to the axes specified in order.

rotvec_to_rotmat

This function converts a rotation vector to a rotation matrix according to the form specified in Rotation Representations.

rotvec_to_quaternion

This function converts a rotation vector given as a 3 element Sequence into a rotation quaternion of the form discussed in Rotation Representations.

rotvec_to_euler

This function converts a rotation vector into euler angles in the specified order.

rotmat_to_quaternion

This function converts a rotation matrix into a rotation quaternion of the form discussed in Rotation Representations.

rotmat_to_euler

This function converts a rotation matrix to 3 euler angles to be applied to the axes specified in order.

rotmat_to_rotvec

Converts a rotation matrix to a rotation vector.

euler_to_rotmat

This function converts a sequence of 3 euler angles into a rotation matrix.

euler_to_rotvec

This function converts Euler angles into a a rotation vector.

euler_to_quaternion

This function converts Euler angles into a a rotation quaternion.