QUATScale

C Specification

#include <revolution/mtx.h>
void C_QUATScale ( const Quaternion* q, Quaternion* r, f32 scale );
void PSQUATScale ( const Quaternion* q, Quaternion* r, f32 scale );

#define QUATScale  C_QUATScale // for debug build
#define QUATScale  PSQUATScale // for nondebug build

Arguments

p Pointer to Quaternion to be scaled.
r Pointer to resultant Quaternion. Contains the result of scaled p. Acceptable if r = p.
scale Scale value in floating point number.

Return Values

None.

Description

Multiplies a quaternion by a scalar value.

During a debug build, QUATScale is interpreted as C_QUATScale, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSQUATScale, will be automatically substituted. You can also call each of C_QUATScale/PSQUATScale explicitly.

See Also

Quaternion, QuaternionPtr,

Revision History

03/01/2006 Initial version.