XMVectorCatmullRomV function (directxmath.h)

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

Syntax

XMVECTOR XM_CALLCONV XMVectorCatmullRomV(
  [in] FXMVECTOR Position0,
  [in] FXMVECTOR Position1,
  [in] FXMVECTOR Position2,
  [in] GXMVECTOR Position3,
  [in] HXMVECTOR T
) noexcept;

Parameters

[in] Position0

First position.

[in] Position1

Second position.

[in] Position2

Third position.

[in] Position3

Fourth position.

[in] 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.

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

Requirements

Requirement Value
Target Platform Windows
Header directxmath.h (include DirectXMath.h)

See also

Geometric Vector Functions

XMVectorCatmullRom