XMVectorLerpV

Performs a linear interpolation between two vectors.

Syntax

XMVECTOR XMVectorLerpV(
         XMVECTOR V0,
         XMVECTOR V1,
         XMVECTOR T
)  

Parameters

V0
Type: XMVECTOR 

First vector to interpolate from.

V1
Type: XMVECTOR 

Second vector to interpolate from.

T
Type: XMVECTOR 

Interpolating control factor for the corresponding components of the position.

Return value

Type: XMVECTOR 

Returns a vector containing the interpolation.

Remarks

The following pseudocode demonstrates the operation of the function:

XMVECTOR Result;

Result.x = V0.x + T.x * (V1.x - V0.x);
Result.y = V0.y + T.y * (V1.y - V0.y);
Result.z = V0.z + T.z * (V1.z - V0.z);
Result.w = V0.w + T.w * (V1.w - V0.w);

return Result;  

Requirements

Header: Declared in directxmath.h.