(euler_vec, ordering='XYZ')
return mat_to_quat(mat)
Returns the quaternion corresponding to the provided euler angles.

  Args:
    euler_vec: The euler angle rotations.
    ordering: (str) Desired euler angle ordering.

  Returns:
    quat: A quaternion [w, i, j, k]
Returns the quaternion corresponding to the provided euler angles.
Returns the quaternion corresponding to the provided euler angles .
def euler_to_quat(euler_vec, ordering='XYZ'):
  """Returns the quaternion corresponding to the provided euler angles.

  Args:
    euler_vec: The euler angle rotations.
    ordering: (str) Desired euler angle ordering.

  Returns:
    quat: A quaternion [w, i, j, k]
  """
  mat = euler_to_rmat(euler_vec, ordering=ordering)
  return mat_to_quat(mat)
def euler_to_quat ( euler_vec , ordering = 'XYZ' ) : mat = euler_to_rmat ( euler_vec , ordering = ordering ) return mat_to_quat ( mat )