| Table of Contents / Transformations / Quaternions | Operators |
quat_compose — Multiply two quaternions.
quat_compose( : : QuaternionLeft, QuaternionRight : QuaternionComposed)
The operator quat_compose multiplies the two quaternions QuaternionLeft and QuaternionRight and returns the result in QuaternionComposed.
A quaternion x is given by x = x_{0} + x_{1}*i + x_{2}*j + x_{3}*k. In HALCON, a quaternion is represented by a four value tuple: [x_{0},x_{1},x_{2},x_{3}].
The product of two quaternions x and y is defined as:
x*y = (x_{0}*y_{0} - x_{1}*y_{1} - x_{2}*y_{2} - x_{3}*y_{3}) +
(x_{0}*y_{1} + x_{1}*y_{0} + x_{2}*y_{3} - x_{3}*y_{2})*i +
(x_{0}*y_{2} + x_{1}*y_{3} + x_{2}*y_{0} - x_{3}*y_{1})*j +
(x_{0}*y_{3} + x_{1}*y_{2} + x_{2}*y_{1} - x_{3}*y_{0})*k
As a consequence, the multiplication of two quaternions is not commutative, i.e. x*y != y*x.
Left quaternion.
Right quaternion.
Product of the input quaternions.
quat_to_hom_mat3d, quat_to_pose, quat_rotate_point_3d
axis_angle_to_quat, quat_to_hom_mat3d, quat_rotate_point_3d, quat_normalize, quat_conjugate
Foundation
| Table of Contents / Transformations / Quaternions | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |