Skip to content

Latest commit

 

History

History
102 lines (78 loc) · 2.34 KB

nf-directxmath-xmvectorset.md

File metadata and controls

102 lines (78 loc) · 2.34 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.XMVectorSet
XMVectorSet function (directxmath.h)
Creates a vector using four floating-point values.
Use DirectX..XMVectorSet
XMVectorSet
XMVectorSet method [DirectX Math Support APIs]
dxmath.xmvectorset
dxmath\xmvectorset.htm
dxmath
M:Microsoft.directx_sdk.initialization.XMVectorSet(float,float,float,float)
12/05/2018
Use DirectX..XMVectorSet, XMVectorSet, XMVectorSet method [DirectX Math Support APIs], dxmath.xmvectorset
directxmath.h
DirectXMath.h
Windows
Use DirectX.
Windows
19H1
XMVectorSet
directxmath/XMVectorSet
c++
APIRef
kbSyntax
COM
directxmathvector.inl
XMVectorSet

XMVectorSet function

-description

Creates a vector using four floating-point values.

-parameters

-param x [in]

The x component of the vector to return.

-param y [in]

The y component of the vector to return.

-param z [in]

The z component of the vector to return.

-param w [in]

The w component of the vector to return.

-returns

An instance XMVECTOR each of whose four components (x,y,z, and w) is a floating-point number with the same value as the corresponding input argument to XMVectorSet.

-remarks

The following pseudocode demonstrates the operation of the function:

XMVECTOR V;
float x,y,z,w;
V.x = x;
V.y = y;
V.z = z;
V.w = w;

return V;

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

Vector Initialization Functions