QUATScale

Syntax

    #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 the quaternion to be scaled
r Pointer to the resultant quaternion. The result of scaling p is entered. 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 parsed 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 C_QUATScale and PSQUATScale explicitly.

See Also

Quaternion, QuaternionPtr

Revision History

2006/03/01 Initial version.


CONFIDENTIAL