Performs a Catmull-Rom interpolation, using the specified position vectors.
XMVECTOR XMVectorCatmullRomV(
XMVECTOR Position0,
XMVECTOR Position1,
XMVECTOR Position2,
GXMVECTOR Position3,
XMVECTOR T
)
Position0
Type: XMVECTOR
First position.
Position1
Type: XMVECTOR
Second position.
Position2
Type: XMVECTOR
Third position.
Position3
Type: GXMVECTOR
Fourth position.
T
Type: XMVECTOR
Interpolating control factor for the corresponding components of the position.
Type: XMVECTOR
Returns the results of the Catmull-Rom interpolation.
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.
Header: Declared in directxmath.h.