XMQuaternionSquadV

Interpolates between four unit quaternions, using spherical quadrangle interpolation.

Syntax

XMVECTOR XMQuaternionSquadV(
         XMVECTOR Q0,
         XMVECTOR Q1,
         XMVECTOR Q2,
         GXMVECTOR Q3,
         XMVECTOR T
)  

Parameters

Q0
Type: XMVECTOR 

First unit quaternion.

Q1
Type: XMVECTOR 

Second unit quaternion.

Q2
Type: XMVECTOR 

Third unit quaternion.

Q3
Type: GXMVECTOR 

Fourth unit quaternion.

T
Type: XMVECTOR 

Interpolation control factor. All components of this vector must be the same.

Return value

Type: XMVECTOR 

Returns the interpolated quaternion. If Q0, Q1, Q2, and Q3 are not unit quaternions, the resulting interpolation is undefined.

Remarks

The DirectXMath quaternion functions use an XMVECTOR 4-vector to represent quaternions, where the X, Y, and Z components are the vector part and the W component is the scalar part.

This function is identical to XMQuaternionSquad except that T is supplied using a 4D vector instead of a float value.

Requirements

Header: Declared in directxmath.h.