| Table of Contents / Transformations / Quaternions | Operators |
quat_to_hom_mat3d — Convert a quaternion into the corresponding rotation matrix.
quat_to_hom_mat3d( : : Quaternion : RotationMatrix)
The operator quat_to_hom_mat3d converts a unit quaternion Quaternion into its corresponding rotation matrix RotationMatrix.
The RotationMatrix for a quaternion x = x_{0} + x_{1}*i + x_{2}*j + x_{3}*k is given by:
/ x_0^2+x_1^2-x_2^2-x_3^2 2*x_1*x_2-2*x_0*x_3 2*x_0*x_2+2*x_1*x_3 \ | 2*x_0*x_3+2*x_1*x_2 x_0^2-x_1^2+x_2^2-x_3^2 2*x_2*x_3-2*x_0*x_1 | \ 2*x_1*x_3-2*x_0*x_2 2*x_0*x_1+2_x_2*x_3 x_0^2-x_1^2-x_2^2+x_3^2 /
RotationMatrix will only be a valid rotation matrix if Quaternion is a unit quaternion!
Rotation quaternion.
Rotation matrix.
axis_angle_to_quat, quat_compose
axis_angle_to_quat, quat_rotate_point_3d, quat_to_pose, quat_normalize, quat_conjugate, quat_interpolate
Foundation
| Table of Contents / Transformations / Quaternions | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |