Performs a linear interpolation between two vectors.
XMVECTOR XMVectorLerpV(
XMVECTOR V0,
XMVECTOR V1,
XMVECTOR T
)
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.
Type: XMVECTOR
Returns a vector containing the interpolation.
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;
Header: Declared in directxmath.h.