This topic has not yet been rated - Rate this topic

XMVectorHermiteV method

Performs a Hermite spline interpolation, using the specified vectors.

Syntax


XMVECTOR XMVectorHermiteV(
  [in]  XMVECTOR Position0,
  [in]  XMVECTOR Tangent0,
  [in]  XMVECTOR Position1,
  [in]  XMVECTOR Tangent1,
  [in]  XMVECTOR T
);

Parameters

Position0 [in]

First position to interpolate from.

Tangent0 [in]

Tangent vector for the first position.

Position1 [in]

Second position to interpolate from.

Tangent1 [in]

Tangent vector for the second position.

T [in]

Interpolating control factor for the corresponding components of the position.

Return value

Returns a vector containing the interpolation.

Remarks

This function is identical to XMVectorHermite except that independent weighting factors may supplied in T. As an example, you might want to calculate two sets of Hermite spline 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 Hermite spline interpolation. Similarly, the z and w-components of T would determine the interpolation factors for the second Hermite spline 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

Namespace

Use DirectX.

Header

DirectXMath.h

See also

XMVectorHermite

 

 

Send comments about this topic to Microsoft

Build date: 11/14/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.