Name
quat_interpolateT_quat_interpolateQuatInterpolateQuatInterpolate — Interpolation of two quaternions.
The operator quat_interpolatequat_interpolateQuatInterpolateQuatInterpolateQuatInterpolate interpolates the two quaternions
QuaternionStartQuaternionStartQuaternionStartQuaternionStartquaternionStart and QuaternionEndQuaternionEndQuaternionEndQuaternionEndquaternionEnd at the
interpolation position InterpPosInterpPosInterpPosInterpPosinterpPos. This position must lie
within the interval [0,1]. In the case of InterpPosInterpPosInterpPosInterpPosinterpPos=0,
the interpolated quaternion QuaternionInterpolatedQuaternionInterpolatedQuaternionInterpolatedQuaternionInterpolatedquaternionInterpolated corresponds to
QuaternionStartQuaternionStartQuaternionStartQuaternionStartquaternionStart. In the case of InterpPosInterpPosInterpPosInterpPosinterpPos=1,
the interpolated quaternion QuaternionInterpolatedQuaternionInterpolatedQuaternionInterpolatedQuaternionInterpolatedquaternionInterpolated corresponds to
QuaternionEndQuaternionEndQuaternionEndQuaternionEndquaternionEnd.
The interpolation is done using spherical linear interpolation. As a
consequence if both QuaternionStartQuaternionStartQuaternionStartQuaternionStartquaternionStart and QuaternionEndQuaternionEndQuaternionEndQuaternionEndquaternionEnd are
rotation quaternions, QuaternionInterpolatedQuaternionInterpolatedQuaternionInterpolatedQuaternionInterpolatedquaternionInterpolated will
be a rotation quaternion as well. Further, if InterpPosInterpPosInterpPosInterpPosinterpPos
is increased at constant speed, a point on the unit sphere that is
rotated using QuaternionInterpolatedQuaternionInterpolatedQuaternionInterpolatedQuaternionInterpolatedquaternionInterpolated travels with constant speed on
an arc on the unit sphere.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Interpolation parameter.
Default value: 0.5
Suggested values: 0.0, 0.25, 0.5, 0.75, 1.0
axis_angle_to_quataxis_angle_to_quatAxisAngleToQuatAxisAngleToQuatAxisAngleToQuat,
quat_normalizequat_normalizeQuatNormalizeQuatNormalizeQuatNormalize
quat_to_hom_mat3dquat_to_hom_mat3dQuatToHomMat3dQuatToHomMat3dQuatToHomMat3d,
quat_rotate_point_3dquat_rotate_point_3dQuatRotatePoint3dQuatRotatePoint3dQuatRotatePoint3d,
quat_to_posequat_to_poseQuatToPoseQuatToPoseQuatToPose
quat_rotate_point_3dquat_rotate_point_3dQuatRotatePoint3dQuatRotatePoint3dQuatRotatePoint3d,
quat_conjugatequat_conjugateQuatConjugateQuatConjugateQuatConjugate,
quat_composequat_composeQuatComposeQuatComposeQuatCompose,
dual_quat_interpolatedual_quat_interpolateDualQuatInterpolateDualQuatInterpolateDualQuatInterpolate
Foundation