[][src]Function directx_math::XMVectorLerpV

pub fn XMVectorLerpV(V0: FXMVECTOR, V1: FXMVECTOR, T: FXMVECTOR) -> XMVECTOR

Performs a linear interpolation between two vectors.

Parameters

V0 First vector to interpolate from.

V1 Second vector to interpolate from.

T Interpolating control factor for the corresponding components of the position.

Return value

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;

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMVectorLerpV