20 Managing Quaternions
Q3Quaternion_InterpolateFast
function 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.
Q3Quaternion_InterpolateFast
function returns, as its function result and in the result
parameter, a quaternion that interpolates between the two quaternions specified by the q1
and q2
parameters, according to the factor specified by the t
parameter. If the value of t
is 0.0, Q3Quaternion_InterpolateFast
returns a quaternion identical to q1
. If the value of t
is 1.0, Q3Quaternion_InterpolateFast
returns a quaternion identical to q2
. If t
is any other value in the range [0.0, 1.0], Q3Quaternion_InterpolateFast
returns a quaternion that is interpolated between the two quaternions.
The interpolation returned by Q3Quaternion_InterpolateFast
is not as smooth or constant as that returned by Q3Quaternion_InterpolateLinear
, but Q3Quaternion_InterpolateFast
is usually faster than Q3Quaternion_InterpolateLinear
.
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker