pele.utils._cpp_utils#

Module source

# distutils: language = C++ # cython: language_level=3str

This module provides access to the c++ routines that deal with rotations

pele.utils._cpp_utils.rotate_aa()

Source

cpdef rotate_aa(p1, p2):

change a given angle axis rotation p2 by the rotation p1

pele.utils._cpp_utils.aa2q()

Source

cpdef aa2q(aa):

convert angle axis to quaternion

Parameters:
aa: angle axis vector of lenth 3
Returns:
Q: quaternion of length 4
pele.utils._cpp_utils.aa2mx()

Source

cpdef aa2mx(aa):

convert an angle axis rotation to a rotation matrix

pele.utils._cpp_utils.rot_mat_derivatives()

Source

cpdef rot_mat_derivatives(p, with_grad=True):

compute the derivatives of a rotation matrix

Parameters:
pndarray

angle axis vector

Returns:
Rthe rotation matrix corresponding to p
dR1, dR2, dR3derivatives of R in the x, y, z directions.