Skip to content

Latest commit

 

History

History
100 lines (74 loc) · 3.02 KB

ns-directxpackedvector-xmshort2.md

File metadata and controls

100 lines (74 loc) · 3.02 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
NS:directxpackedvector.XMSHORT2
XMSHORT2 (directxpackedvector.h)
Describes a 2D vector consisting of 16-bit signed and normalized integer components.
XMSHORT2
XMSHORT2 structure [DirectX Math Support APIs]
directxpackedvector/XMSHORT2
dxmath.xmshort2
dxmath\xmshort2.htm
dxmath
T:Microsoft.directx_sdk.reference.XMSHORT2
12/05/2018
XMSHORT2, XMSHORT2 structure [DirectX Math Support APIs], directxpackedvector/XMSHORT2, dxmath.xmshort2
directxpackedvector.h
Windows
Windows
19H1
XMSHORT2
directxpackedvector/XMSHORT2
c++
APIRef
kbSyntax
HeaderDef
DirectXPackedVector.h
XMSHORT2

XMSHORT2 structure

-description

Describes a 2D vector consisting of 16-bit signed and normalized integer components.

For a list of additional functionality such as constructors and operators that are available using XMSHORT2 when you are programming in C++, see XMSHORT2 Extensions.

Note  See DirectXMath Library Type Equivalences for information about equivalent D3DDECLTYPE, D3DFORMAT, and DXGI_FORMAT objects.
 

-struct-fields

-field x

Signed integer in the range [-32767, 32767] describing the x-coordinate of the vector.

-field y

Signed integer in the range [-32767, 32767] describing the y-coordinate of the vector.

-field v

-field XMSHORT2

TBD

-field operator=

TBD

-remarks

The components are normalized when this structure is loaded into an XMVECTOR using XMLoadShort2. Each component will be divided by 32767.0f.

Namespace: Use DirectX::PackedVector

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

DirectXMath Library Structures

XMSHORT2 Extensions