QUATLerp

Syntax

    #include <revolution/mtx.h>

void C_QUATLerp (
    const Quaternion* p,
    const Quaternion* q,
          Quaternion* r,
          f32         t );

#define QUATLerp  C_QUATLerp

Arguments

p Pointer to the first Quaternion.
q Pointer to the second Quaternion.
r Pointer to the resultant Quaternion. Contains the result of interpolating between p and q. Acceptable if r = p or r = q.
t Interpolation parameter. If t = 0.0, the result becomes equal to p. If t = 1.0, the result becomes equal to q.

Return Values

None.

Description

Performs linear interpolation on two quaternions.

See Also

Quaternion, QuaternionPtr, QUATSlerp, QUATSquad

Revision History

2006/03/01 Initial version.


CONFIDENTIAL