| Table of Contents / Transformations / Quaternions | Operators |
quat_interpolate — Interpolation of two quaternions.
quat_interpolate( : : QuaternionStart, QuaternionEnd, InterpPos : QuaternionInterpolated)
The operator quat_interpolate interpolates the two quaternions QuaternionStart and QuaternionEnd at the interpolation position InterpPos. This position must lie within the interval [0,1]. In the case of InterpPos=0, the interpolated quaternion QuaternionInterpolated corresponds to QuaternionStart. In the case of InterpPos=1, the interpolated quaternion QuaternionInterpolated corresponds to QuaternionEnd.
The interpolation is done using spherical linear interpolation. As a consequence if both QuaternionStart and QuaternionEnd are rotation quaternions, QuaternionInterpolated will be a rotation quaternion as well. Further, if InterpPos is increased at constant speed, a point on the unit sphere that is rotated using QuaternionInterpolated travels with constant speed on an arc on the unit sphere.
Start quaternion.
End quaternion.
Interpolation parameter.
Default value: 0.5
List of values: 0.0, 0.25, 0.5, 0.75, 1.0
Interpolated quaternion.
axis_angle_to_quat, quat_normalize
quat_to_hom_mat3d, quat_rotate_point_3d, quat_to_pose
quat_rotate_point_3d, quat_conjugate, quat_compose
Foundation
| Table of Contents / Transformations / Quaternions | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |