Returns a point in Barycentric coordinates, using the specified position vectors.
XMVECTOR XMVectorBaryCentricV(
XMVECTOR Position0,
XMVECTOR Position1,
XMVECTOR Position2,
GXMVECTOR F,
XMVECTOR G
)
Position0
Type: XMVECTOR
First position.
Position1
Type: XMVECTOR
Second position.
Position2
Type: XMVECTOR
Third position.
F
Type: GXMVECTOR
Weighting factors for the corresponding components of the position.
G
Type: XMVECTOR
Weighting factors for the corresponding components of the position.
Type: XMVECTOR
Returns the Barycentric coordinates.
This function is identical to XMVectorBaryCentric except that independent weighting factors may supplied in F and G. As an example, you might want to calculate two sets of 2D Barycentric coordinates, 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 F and G would determine the weighting factors for the first set of Barycentric coordinates. Similarly, the z and w-components of F and G would determine the weighting factors for the second set of Barycentric coordinates.
Header: Declared in directxmath.h.