XMVectorGetByIndexPtr

Retrieve, into an instance of a floating-point referenced by pointer, the value of one of the four components of an XMVECTOR Data Type containing floating-point data, referenced by index.

Syntax

void XMVectorGetByIndexPtr(
         float *f,
         XMVECTOR V,
         size_t i
)  

Parameters

f
Type: float *

[out]

Pointer to an instance of an floating-point object that will receive the value of the i component of the XMVECTOR Data Type object V.

V
Type: XMVECTOR 

[in]

A XMVECTOR Data Type containing floating-point data.

i
Type: size_t 

[in]

The index of the component to be retrieved.

Return value

None.

Remarks

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

Requirements

Header: Declared in directxmath.h.