[][src]Function directx_math::XMVectorCatmullRomV

pub fn XMVectorCatmullRomV(
    Position0: FXMVECTOR,
    Position1: FXMVECTOR,
    Position2: FXMVECTOR,
    Position3: GXMVECTOR,
    T: HXMVECTOR
) -> XMVECTOR

Performs a Catmull-Rom interpolation, using the specified position vectors.

Parameters

Position0 First position.

Position1 Second position.

Position2 Third position.

Position3 Fourth position.

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

Return value

Returns the results of the Catmull-Rom interpolation.

Remarks

This function is identical to XMVectorCatmullRom except that independent weighting factors may supplied in T. As an example, you might want to calculate two sets of Catmull-Rom interpolation, using the x and y-components of the position vectors for one set of 2D positions and the z and w-components of the position vectors for the other set of 2D positions. The x and y-components of T would determine the interpolation factors for the first Catmull-Rom interpolation. Similarly, the z and w-components of T would determine the interpolation factors for the second Catmull-Rom interpolation.

Reference

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