XMVectorGetYPtr

Retrieve the y component of an XMVECTOR Data Type containing floating-point data, and storing that component's value in an instance of FLOAT referred to by a pointer.

Syntax

VOID XMVectorGetYPtr(
         FLOAT *y,
         XMVECTOR V
)

Parameters

  • y
    Pointer to a FLOAT that will receive the value of the y element of the XMVECTOR Data Type object V.
  • V
    A valid 4D vector storing floating-point data.

Return Value

None.

Remarks

When targeting the Xbox 360, XMVectorGetYPtr may be more efficient than using XMVectorGetY, which may generate a Load/Hit/Store event.

Requirements

Header: Declared in xnamath.h.

See Also

XNA Math Library Vector Accessor Functions