(quaternion, axes='sxyz')
return euler_from_matrix(quaternion_matrix(quaternion), axes)
Return Euler angles from quaternion for specified axis sequence.

    >>> angles = euler_from_quaternion([0.99810947, 0.06146124, 0, 0])
    >>> numpy.allclose(angles, [0.123, 0, 0])
    True
Return Euler angles from quaternion for specified axis sequence.
Return Euler angles from quaternion for specified axis sequence .
def euler_from_quaternion(quaternion, axes='sxyz'):
    """Return Euler angles from quaternion for specified axis sequence.

    >>> angles = euler_from_quaternion([0.99810947, 0.06146124, 0, 0])
    >>> numpy.allclose(angles, [0.123, 0, 0])
    True

    """
    return euler_from_matrix(quaternion_matrix(quaternion), axes)
def euler_from_quaternion ( quaternion , axes = 'sxyz' ) : return euler_from_matrix ( quaternion_matrix ( quaternion ) , axes )