Computes the product of the first two vectors added to the third vector.
XMVECTOR XMVectorMultiplyAdd(
XMVECTOR V1,
XMVECTOR V2,
XMVECTOR V3
)
V1
Type: XMVECTOR
Vector multiplier.
V2
Type: XMVECTOR
Vector multiplicand.
V3
Type: XMVECTOR
Vector addend.
Type: XMVECTOR
Returns the product-sum of the vectors.
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;
Header: Declared in directxmath.h.