VEC_MultSubtract

Syntax

#include <nitro/fx/fx_vec.h>

void VEC_MultSubtract(
    fx32 a,
    const VecFx32* v1,
    const VecFx32* v2,
    VecFx32* pDest
);

Arguments

a An fx32 type scalar value.
v1 Pointer to a vector.
v2   Pointer to a vector.
pDest   The pointer to the vector where the result is stored.

Return Values

None.

Description

This function multiplies a VecFx32-type vector by a scalar value and then subtracts another vector from the product. The result is shown by *pDest = a x *v1 - *v2. v1, v2, and pDst can be pointers to the same vector.

See Also

VecFx32, VEC_MultAdd

Revision History

2004/02/16 Initial version.


CONFIDENTIAL