XMVectorMultiplyAdd

Computes the product of the first two vectors added to the third vector.

Syntax

XMVECTOR XMVectorMultiplyAdd(
         XMVECTOR V1,
         XMVECTOR V2,
         XMVECTOR V3
)  

Parameters

V1
Type: XMVECTOR 

Vector multiplier.

V2
Type: XMVECTOR 

Vector multiplicand.

V3
Type: XMVECTOR 

Vector addend.

Return value

Type: XMVECTOR 

Returns the product-sum of the vectors.

Remarks

The following pseudocode demonstrates the operation of the function:

XMVECTOR Result;

Result.x = V1.x * V2.x + V3.x;
Result.y = V1.y * V2.y+ V3.y;
Result.z = V1.z * V2.z+ V3.z;
Result.w = V1.w * V2.w+ V3.w;

return Result;  

Requirements

Header: Declared in directxmath.h.