jaclearn.math package

Submodules

jaclearn.math.rotation module

jaclearn.math.rotation.as_rotation(r)[source]

Convert a 3x3 matrix or a quaternion into a standard 3x3 matrix representation.

jaclearn.math.rotation.axisangle2quat(axis, angle)[source]
jaclearn.math.rotation.euler2mat(euler)[source]

Convert Euler Angles to Rotation Matrix. See rotation.py for notes

jaclearn.math.rotation.euler2point_euler(euler)[source]
jaclearn.math.rotation.euler2quat(euler)[source]

Convert Euler Angles to Quaternions. See rotation.py for notes

jaclearn.math.rotation.get_parallel_rotations()[source]
jaclearn.math.rotation.mat2euler(mat)[source]

Convert Rotation Matrix to Euler Angles. See rotation.py for notes

jaclearn.math.rotation.mat2quat(mat)[source]

Convert Rotation Matrix to Quaternion. See rotation.py for notes

jaclearn.math.rotation.normalize_angles(angles)[source]

Puts angles in [-pi, pi] range.

jaclearn.math.rotation.point_euler2euler(euler)[source]
jaclearn.math.rotation.point_quat2quat(quat)[source]
jaclearn.math.rotation.quat2axisangle(quat)[source]
jaclearn.math.rotation.quat2euler(quat)[source]

Convert Quaternion to Euler Angles. See rotation.py for notes

jaclearn.math.rotation.quat2mat(quat)[source]

Convert Quaternion to Euler Angles. See rotation.py for notes

jaclearn.math.rotation.quat2point_quat(quat)[source]
jaclearn.math.rotation.quat_conjugate(q)[source]
jaclearn.math.rotation.quat_identity()[source]
jaclearn.math.rotation.quat_mul(q0, q1)[source]
jaclearn.math.rotation.quat_rot_vec(q, v0)[source]
jaclearn.math.rotation.round_to_straight_angles(angles)[source]

Returns closest angle modulo 90 degrees

jaclearn.math.rotation.subtract_euler(e1, e2)[source]