src/bvhtoolbox/convert/bvh2xaf_helpers.py
def string2quat(xaf_str):
    """Takes quaternion string (xyzw) and converts it to quaternion array (wxyz).
    
    :param xaf_string: space delimited xyzw quaternion
    :type xaf_string: str
    :return: quaternion (wxyz)
    :rtype: numpy.ndarray
    """
    quat = np.fromstring(xaf_str, sep=' ')
    quat = np.roll(quat, shift=1)
    prune(quat)
    return quat
Takes quaternion string (xyzw) and converts it to quaternion array (wxyz).
    
    :param xaf_string: space delimited xyzw quaternion
    :type xaf_string: str
    :return: quaternion (wxyz)
    :rtype: numpy.ndarray
    
Takes quaternion string (xyzw) and converts it to quaternion array (wxyz).
Takes quaternion string ( xyzw ) and converts it to quaternion array ( wxyz ) .
def string2quat(xaf_str):
    quat = np.fromstring(xaf_str, sep=' ')
    quat = np.roll(quat, shift=1)
    prune(quat)
    return quat
def string2quat ( xaf_str ) : quat = np . fromstring ( xaf_str , sep = ' ' ) quat = np . roll ( quat , shift = 1 ) prune ( quat ) return quat
Takes quaternion string (xyzw) and converts it to quaternion array (wxyz).
Takes quaternion string ( xyzw ) and converts it to quaternion array ( wxyz ) .
"""Takes quaternion string (xyzw) and converts it to quaternion array (wxyz).
    
    :param xaf_string: space delimited xyzw quaternion
    :type xaf_string: str
    :return: quaternion (wxyz)
    :rtype: numpy.ndarray
    """
None
numpy.ndarray
xaf_str
xaf_string
space delimited xyzw quaternion
space delimited xyzw quaternion