[][src]Function directx_math::XMVectorBaryCentricV

pub fn XMVectorBaryCentricV(
    Position0: FXMVECTOR,
    Position1: FXMVECTOR,
    Position2: FXMVECTOR,
    F: GXMVECTOR,
    G: HXMVECTOR
) -> XMVECTOR

Returns a point in Barycentric coordinates, using the specified position vectors.

Parameters

Position0 First position.

Position1 Second position.

Position2 Third position.

F Weighting factors for the corresponding components of the position.

G Weighting factors for the corresponding components of the position.

Return value

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.

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMVectorBaryCentricV