Retrieve the value of one of the four components of an XMVECTOR Data Type containing integer data by index.
uint32_t XMVectorGetIntByIndex(
XMVECTOR V,
size_t i
)
V
Type: XMVECTOR
A XMVECTOR Data Type containing integer data.
i
Type: size_t
The index of the component to be retrieved.
Type: uint32_t
The integer value of the selected component.
The value of i must be positive and less than or equal to three ( 0 <= i <= 3 ).
The indexes have the following correspondence with XMVECTOR Data Type vector components:
| Index | Component |
|---|---|
0 |
x |
1 |
y |
2 |
z |
3 |
w |
Header: Declared in directxmath.h.