serialize_quatT_serialize_quatSerializeQuatSerializeQuatserialize_quat (Operator)
Name
serialize_quatT_serialize_quatSerializeQuatSerializeQuatserialize_quat
— Serialize a quaternion.
Signature
def serialize_quat(quaternion: Sequence[Union[float, int]]) -> HHandle
Description
serialize_quatserialize_quatSerializeQuatSerializeQuatserialize_quat
serializes the data of the QuaternionQuaternionQuaternionquaternionquaternion
(see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
for an introduction of the basic
principle of serialization). The serialized quaternion is returned by
the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
and can be deserialized by
deserialize_quatdeserialize_quatDeserializeQuatDeserializeQuatdeserialize_quat
.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
QuaternionQuaternionQuaternionquaternionquaternion
(input_control) quaternion →
HQuaternion, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Quaternion.
SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
(output_control) serialized_item →
HSerializedItem, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the serialized item.
Result
If the parameters are valid, the operator serialize_quatserialize_quatSerializeQuatSerializeQuatserialize_quat
returns the value 2 (
H_MSG_TRUE)
. If necessary, an exception is raised.
Possible Predecessors
axis_angle_to_quataxis_angle_to_quatAxisAngleToQuatAxisAngleToQuataxis_angle_to_quat
Possible Successors
fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
,
send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemsend_serialized_item
,
deserialize_quatdeserialize_quatDeserializeQuatDeserializeQuatdeserialize_quat
Module
Foundation