QUATSlerp

Syntax

    #include <revolution/mtx.h>

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

#define QUATSlerp  C_QUATSlerp

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

Computes the spherical linear interpolation (slerp) for two quaternions.

See Also

Quaternion, QuaternionPtr, QUATLerp, QUATSquad

Revision History

2006/03/01 Initial version.


CONFIDENTIAL