Q3Quaternion_InterpolateFast
You can use theQ3Quaternion_InterpolateFastfunction to interpolate quickly between two quaternions.
TQ3Quaternion *Q3Quaternion_InterpolateFast ( const TQ3Quaternion *q1, const TQ3Quaternion *q2, float t, TQ3Quaternion *result);
q1- A quaternion.
q2- A quaternion.
t- An interpolation factor. This parameter should contain a value between 0.0 and 1.0.
result- On exit, a quaternion that is a fast interpolation between the two specified quaternions.
DESCRIPTION
TheQ3Quaternion_InterpolateFastfunction returns, as its function result and in theresultparameter, a quaternion that interpolates between the two quaternions specified by theq1andq2parameters, according to the factor specified by thetparameter. If the value oftis 0.0,Q3Quaternion_InterpolateFastreturns a quaternion identical toq1. If the value oftis 1.0,Q3Quaternion_InterpolateFastreturns a quaternion identical toq2. Iftis any other value in the range [0.0, 1.0],Q3Quaternion_InterpolateFastreturns a quaternion that is interpolated between the two quaternions.The interpolation returned by
Q3Quaternion_InterpolateFastis not as smooth or constant as that returned byQ3Quaternion_InterpolateLinear, butQ3Quaternion_InterpolateFastis usually faster thanQ3Quaternion_InterpolateLinear.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help