QUATSlerp

C Specification

#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 resultant Quaternion. Contains the result of interpolation 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 spherical linear interpolation (Slerp) of two quaternions.

See Also

Quaternion, QuaternionPtr, QUATLerp, QUATSquad

Revision History

03/01/2006 Initial version.