VECScale

C Specification

#include <revolution/mtx.h>
void C_VECScale ( const Vec* src, Vec* dst, f32 scale );
void PSVECScale ( const Vec* src, Vec* dst, f32 scale );

#define VECScale  C_VECScale // for debug build
#deifne VECScale  PSVECScale // for nondebug build

Arguments

src Pointer to source Vec for scaling.
dst Pointer to resultant scaled Vec. Acceptable if dst = src.
scale Floating point scale factor.

Return Values

None.

Description

Multiplies a vector by a scalar.

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

See Also

Vec, VecPtr

Revision History

03/01/2006 Initial version.