Skip to content

Latest commit

 

History

History
94 lines (69 loc) · 3.09 KB

nf-directxmath-xmvectorbarycentricv.md

File metadata and controls

94 lines (69 loc) · 3.09 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:directxmath.XMVectorBaryCentricV
XMVectorBaryCentricV function (directxmath.h)
Returns a point in Barycentric coordinates, using the specified position vectors. (XMVectorBaryCentricV)
Use DirectX..XMVectorBaryCentricV
XMVectorBaryCentricV
XMVectorBaryCentricV method [DirectX Math Support APIs]
dxmath.xmvectorbarycentricv
dxmath\xmvectorbarycentricv.htm
dxmath
M:Microsoft.directx_sdk.geometric.XMVectorBaryCentricV(XMVECTOR,XMVECTOR,XMVECTOR,XMVECTOR,XMVECTOR)
12/05/2018
Use DirectX..XMVectorBaryCentricV, XMVectorBaryCentricV, XMVectorBaryCentricV method [DirectX Math Support APIs], dxmath.xmvectorbarycentricv
directxmath.h
DirectXMath.h
Windows
Use DirectX.
Windows
19H1
XMVectorBaryCentricV
directxmath/XMVectorBaryCentricV
c++
APIRef
kbSyntax
COM
directxmathvector.inl
XMVectorBaryCentricV

XMVectorBaryCentricV function

-description

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

-parameters

-param Position0 [in]

First position.

-param Position1 [in]

Second position.

-param Position2 [in]

Third position.

-param F [in]

Weighting factors for the corresponding components of the position.

-param G [in]

Weighting factors for the corresponding components of the position.

-returns

Returns the Barycentric coordinates.

-remarks

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.

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.

-see-also

Geometric Vector Functions

XMVectorBaryCentric