XMVectorGetX

Retrieve the x component of an XMVECTOR Data Type.

Syntax

float XMVectorGetX(
         XMVECTOR V
)  

Parameters

V
Type: XMVECTOR 

A valid 4D vector storing floating-point data

Return value

Type: float 

The value in the x component of the 4D vector storing floating-point data V

Requirements

Header: Declared in directxmath.h.