quat_to_hom_mat3dT_quat_to_hom_mat3dQuatToHomMat3dQuatToHomMat3dquat_to_hom_mat3d (Operator)
Name
quat_to_hom_mat3dT_quat_to_hom_mat3dQuatToHomMat3dQuatToHomMat3dquat_to_hom_mat3d
— Convert a quaternion into the corresponding rotation matrix.
Signature
def quat_to_hom_mat3d(quaternion: Sequence[float]) -> Sequence[float]
Description
The operator quat_to_hom_mat3dquat_to_hom_mat3dQuatToHomMat3dQuatToHomMat3dQuatToHomMat3dquat_to_hom_mat3d
converts a unit quaternion
QuaternionQuaternionQuaternionQuaternionquaternionquaternion
into its corresponding rotation matrix
RotationMatrixRotationMatrixRotationMatrixRotationMatrixrotationMatrixrotation_matrix
.
The RotationMatrixRotationMatrixRotationMatrixRotationMatrixrotationMatrixrotation_matrix
for a quaternion
is given by:
Attention
RotationMatrixRotationMatrixRotationMatrixRotationMatrixrotationMatrixrotation_matrix
will only be a valid rotation matrix if
QuaternionQuaternionQuaternionQuaternionquaternionquaternion
is a unit quaternion.
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
QuaternionQuaternionQuaternionQuaternionquaternionquaternion
(input_control) quaternion →
HQuaternion, HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Rotation quaternion.
RotationMatrixRotationMatrixRotationMatrixRotationMatrixrotationMatrixrotation_matrix
(output_control) hom_mat3d →
HHomMat3D, HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Rotation matrix.
Possible Predecessors
axis_angle_to_quataxis_angle_to_quatAxisAngleToQuatAxisAngleToQuatAxisAngleToQuataxis_angle_to_quat
,
quat_composequat_composeQuatComposeQuatComposeQuatComposequat_compose
Possible Successors
affine_trans_point_3daffine_trans_point_3dAffineTransPoint3dAffineTransPoint3dAffineTransPoint3daffine_trans_point_3d
See also
axis_angle_to_quataxis_angle_to_quatAxisAngleToQuatAxisAngleToQuatAxisAngleToQuataxis_angle_to_quat
,
quat_rotate_point_3dquat_rotate_point_3dQuatRotatePoint3dQuatRotatePoint3dQuatRotatePoint3dquat_rotate_point_3d
,
quat_to_posequat_to_poseQuatToPoseQuatToPoseQuatToPosequat_to_pose
,
quat_normalizequat_normalizeQuatNormalizeQuatNormalizeQuatNormalizequat_normalize
,
quat_conjugatequat_conjugateQuatConjugateQuatConjugateQuatConjugatequat_conjugate
,
quat_interpolatequat_interpolateQuatInterpolateQuatInterpolateQuatInterpolatequat_interpolate
Module
Foundation