XMQuaternionBaryCentricV

Returns a point in barycentric coordinates, using the specified quaternions.

Syntax

XMVECTOR XMQuaternionBaryCentricV(
         XMVECTOR Q0,
         XMVECTOR Q1,
         XMVECTOR Q2,
         GXMVECTOR F,
         XMVECTOR G
)  

Parameters

Q0
Type: XMVECTOR 

First quaternion in the triangle.

Q1
Type: XMVECTOR 

Second quaternion in the triangle.

Q2
Type: XMVECTOR 

Third quaternion in the triangle.

F
Type: GXMVECTOR 

Weighting factor. All components of this vector must be the same.

G
Type: XMVECTOR 

Weighting factor. All components of this vector must be the same.

Return value

Type: XMVECTOR 

Returns a quaternion in barycentric coordinates.

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 XMQuaternionBaryCentric except that F and G are supplied using a 4D vector instead of a float value.

Requirements

Header: Declared in directxmath.h.